pub enum MenuItem<T>{
Separator,
Item {
id: T,
name: String,
disabled: bool,
icon: Option<Icon>,
},
Checkable {
id: T,
name: String,
is_checked: bool,
disabled: bool,
icon: Option<Icon>,
},
Submenu {
id: Option<T>,
name: String,
children: MenuBuilder<T>,
disabled: bool,
icon: Option<Icon>,
},
}Variants§
Trait Implementations§
impl<T> StructuralPartialEq for MenuItem<T>
Auto Trait Implementations§
impl<T> Freeze for MenuItem<T>where
T: Freeze,
impl<T> RefUnwindSafe for MenuItem<T>where
T: RefUnwindSafe,
impl<T> Send for MenuItem<T>where
T: Send,
impl<T> Sync for MenuItem<T>where
T: Sync,
impl<T> Unpin for MenuItem<T>where
T: Unpin,
impl<T> UnwindSafe for MenuItem<T>where
T: 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