(&mut self)
| 81 | } |
| 82 | |
| 83 | pub fn move_down(&mut self) { |
| 84 | if let Some(q) = &self.current_question { |
| 85 | if !q.options.is_empty() && self.selected_index + 1 < q.options.len() { |
| 86 | self.selected_index += 1; |
| 87 | } |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | pub fn toggle_selected(&mut self) { |
| 92 | if let Some(q) = &self.current_question { |
no test coverage detected