(&mut self, predicate: impl Fn(&OptionState) -> bool)
| 157 | } |
| 158 | |
| 159 | pub(crate) fn focus_first_where(&mut self, predicate: impl Fn(&OptionState) -> bool) { |
| 160 | let index = self.first_matching_enabled_index(predicate); |
| 161 | self.collection.set_focus(index); |
| 162 | } |
| 163 | |
| 164 | pub(crate) fn focus_last_where(&mut self, predicate: impl Fn(&OptionState) -> bool) { |
| 165 | let index = self.last_matching_enabled_index(predicate); |
no test coverage detected