pub enum MenuItemKindSnapshot {
MenuItem(MenuItemSnapshot),
Submenu(SubmenuSnapshot),
Predefined(PredefinedMenuItemSnapshot),
Check(CheckMenuItemSnapshot),
Icon(IconMenuItemSnapshot),
}Available on crate feature
snapshot only.Expand description
A thread-safe snapshot handle for any menu item kind.
Variants§
MenuItem(MenuItemSnapshot)
Predefined(PredefinedMenuItemSnapshot)
Check(CheckMenuItemSnapshot)
Icon(IconMenuItemSnapshot)
Trait Implementations§
Source§impl Clone for MenuItemKindSnapshot
impl Clone for MenuItemKindSnapshot
Source§impl From<&MenuItemKind> for MenuItemKindSnapshot
impl From<&MenuItemKind> for MenuItemKindSnapshot
Source§fn from(item: &MenuItemKind) -> Self
fn from(item: &MenuItemKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for MenuItemKindSnapshot
impl !UnwindSafe for MenuItemKindSnapshot
impl Freeze for MenuItemKindSnapshot
impl Send for MenuItemKindSnapshot
impl Sync for MenuItemKindSnapshot
impl Unpin for MenuItemKindSnapshot
impl UnsafeUnpin for MenuItemKindSnapshot
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