pub enum MenuMatch {
Line(usize, String),
UserInput(String),
NoMatch,
}Expand description
The result of attempting to match against user input in a DMenu
Variants§
Line(usize, String)
The selected line along its line number (0 indexed)
UserInput(String)
Nothing matched and this was the user’s input when they hit Return
NoMatch
The user exited out of matching or had nothing typed
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MenuMatch
impl RefUnwindSafe for MenuMatch
impl Send for MenuMatch
impl Sync for MenuMatch
impl Unpin for MenuMatch
impl UnsafeUnpin for MenuMatch
impl UnwindSafe for MenuMatch
Blanket Implementations§
impl<T> Any for Twhere
T: Any,
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