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.
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Hint<'a>
impl<'a> Send for Hint<'a>
impl<'a> Sync for Hint<'a>
impl<'a> Unpin for Hint<'a>
impl<'a> UnwindSafe for Hint<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more