pub enum MenuEvent<T = ()> {
Chosen(T),
Cancelled,
}Expand description
What a menu reports back to its screen.
Variants§
Chosen(T)
Confirm on an enabled item: the value it stands for. (Its index is
still the menu’s focus.)
Cancelled
Cancel was pressed.
Trait Implementations§
impl<T: Copy> Copy for MenuEvent<T>
impl<T: Eq> Eq for MenuEvent<T>
impl<T: PartialEq> StructuralPartialEq for MenuEvent<T>
Auto Trait Implementations§
impl<T> Freeze for MenuEvent<T>where
T: Freeze,
impl<T> RefUnwindSafe for MenuEvent<T>where
T: RefUnwindSafe,
impl<T> Send for MenuEvent<T>where
T: Send,
impl<T> Sync for MenuEvent<T>where
T: Sync,
impl<T> Unpin for MenuEvent<T>where
T: Unpin,
impl<T> UnsafeUnpin for MenuEvent<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for MenuEvent<T>where
T: UnwindSafe,
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