pub enum Item {
Submenu(Rc<Menu>),
Action(Rc<ActionItem>),
Check(Rc<CheckItem>),
Separator,
}
Expand description
Something that can be added to a menu
Variants§
A submenu
Action(Rc<ActionItem>)
An action item
Check(Rc<CheckItem>)
A checkable item
Separator
A separator
Trait Implementations§
source§impl From<Rc<ActionItem>> for Item
impl From<Rc<ActionItem>> for Item
source§fn from(a: Rc<ActionItem>) -> Self
fn from(a: Rc<ActionItem>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Item
impl !RefUnwindSafe for Item
impl !Send for Item
impl !Sync for Item
impl Unpin for Item
impl !UnwindSafe for Item
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