pub enum MenuEntry {
Submenu {
id: MenuId,
label: String,
enabled: bool,
entries: Vec<MenuEntry>,
},
Item {
id: MenuId,
item: MenuItem,
},
Provided {
id: MenuId,
item: ProvidedItem,
enabled: bool,
},
Separator,
}Expand description
One entry of a menu.
Variants§
A menu of its own, opened from this entry: a menu bar’s top-level menus are these.
Item
An item of the app’s.
Provided
An item the system provides, which acts as the system’s own does.
Separator
A line between groups of entries.
Trait Implementations§
impl StructuralPartialEq for MenuEntry
Auto Trait Implementations§
impl Forget for MenuEntry
impl Freeze for MenuEntrywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<MenuEntry>: Freeze,
*const ArcInner<[u8]> is !null: Freeze,
PhantomData<ArcInner<[u8]>>: Freeze,
impl Move for MenuEntry
impl RefUnwindSafe for MenuEntry
impl Send for MenuEntry
impl Sync for MenuEntry
impl Unpin for MenuEntry
impl UnsafeUnpin for MenuEntrywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<MenuEntry>: UnsafeUnpin,
*const ArcInner<[u8]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u8]>>: UnsafeUnpin,
impl UnwindSafe for MenuEntry
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