struct Hint<'a> {
matches: HintMatches<'a>,
labels: &'a Vec<Vec<char>>,
}
Expand description
Regex hints for keyboard shortcuts.
Fields§
§matches: HintMatches<'a>
Hint matches and position.
labels: &'a Vec<Vec<char>>
Last match checked against current cell position.
Implementations§
source§impl<'a> Hint<'a>
impl<'a> Hint<'a>
sourcefn advance(&mut self, viewport_start: Point, point: Point) -> Option<(char, bool)>
fn advance(&mut self, viewport_start: Point, point: Point) -> Option<(char, bool)>
Advance the hint iterator.
If the point is within a hint, the keyboard shortcut character that should be displayed at this position will be returned.
The tuple’s bool
will be true
when the character is the first for this hint.