pub enum KeyResolution<'a> {
Fire(&'a TransientItem),
Prefix,
NoMatch,
}Expand description
What TransientSpec::resolve_key made of the keys typed so far.
Variants§
Fire(&'a TransientItem)
Exactly one row’s key — fire it.
Prefix
No row’s key yet, but at least one begins with what was typed. Hold the keys and wait for more; the renderers dim everything that can no longer match.
NoMatch
Nothing here begins with this. The accumulated keys are discarded — holding them would leave the menu silently unable to accept the next keystroke.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for KeyResolution<'a>
impl<'a> !UnwindSafe for KeyResolution<'a>
impl<'a> Freeze for KeyResolution<'a>
impl<'a> Send for KeyResolution<'a>
impl<'a> Sync for KeyResolution<'a>
impl<'a> Unpin for KeyResolution<'a>
impl<'a> UnsafeUnpin for KeyResolution<'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