pub enum MenuItem {
Item {
key: Key,
label: String,
enabled: bool,
},
Separator {
key: Key,
},
Submenu {
key: Key,
label: String,
items: Vec<Self>,
},
}Expand description
A keyed item in a context menu.
Variants§
Implementations§
Trait Implementations§
impl StructuralPartialEq for MenuItem
Auto Trait Implementations§
impl !Send for MenuItem
impl !Sync for MenuItem
impl Freeze for MenuItem
impl RefUnwindSafe for MenuItem
impl Unpin for MenuItem
impl UnsafeUnpin for MenuItem
impl UnwindSafe for MenuItem
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