Total selectable items for current question (options + "Other")
(&self)
| 154 | |
| 155 | /// Total selectable items for current question (options + "Other") |
| 156 | fn total_options(&self) -> usize { |
| 157 | if let Some(q) = self.current_question() { |
| 158 | q.options.len() + 1 // +1 for "Other" |
| 159 | } else { |
| 160 | 0 |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | /// Whether the selected option is "Other" |
| 165 | fn is_other_selected(&self) -> bool { |
no test coverage detected