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 Freeze for MenuEntry
impl RefUnwindSafe for MenuEntry
impl Send for MenuEntry
impl Sync for MenuEntry
impl Unpin for MenuEntry
impl UnsafeUnpin for MenuEntry
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