pub enum MenuRole {
None,
About,
Settings,
Quit,
}Expand description
An item every app has, which some platforms put in a place of their own (the app menu on macOS) with their own title and shortcut.
Variants§
None
About
About <app>.
Settings
The app’s settings (preferences).
Quit
Quitting: it replaces the platform’s own Quit item, where there is one.
Trait Implementations§
impl Copy for MenuRole
impl Eq for MenuRole
impl StructuralPartialEq for MenuRole
Auto Trait Implementations§
impl Freeze for MenuRole
impl RefUnwindSafe for MenuRole
impl Send for MenuRole
impl Sync for MenuRole
impl Unpin for MenuRole
impl UnsafeUnpin for MenuRole
impl UnwindSafe for MenuRole
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