pub enum MenuEntry<A> {
Item {
title: String,
shortcut: Option<Shortcut>,
action: A,
},
Separator,
Submenu(Menu<A>),
}Variants§
Implementations§
Trait Implementations§
impl<A: Eq> Eq for MenuEntry<A>
impl<A: PartialEq> StructuralPartialEq for MenuEntry<A>
Auto Trait Implementations§
impl<A> Freeze for MenuEntry<A>where
A: Freeze,
impl<A> RefUnwindSafe for MenuEntry<A>where
A: RefUnwindSafe,
impl<A> Send for MenuEntry<A>where
A: Send,
impl<A> Sync for MenuEntry<A>where
A: Sync,
impl<A> Unpin for MenuEntry<A>where
A: Unpin,
impl<A> UnsafeUnpin for MenuEntry<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for MenuEntry<A>where
A: 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