pub enum NativeMenuItem {
Command(NativeMenuCommand),
Separator,
Submenu(NativeMenu),
}Expand description
原生菜单项:命令 / 分隔线 / 子菜单。
Variants§
Command(NativeMenuCommand)
Separator
Implementations§
Trait Implementations§
Source§impl Clone for NativeMenuItem
impl Clone for NativeMenuItem
Source§impl Debug for NativeMenuItem
impl Debug for NativeMenuItem
impl Eq for NativeMenuItem
Source§impl From<NativeMenu> for NativeMenuItem
impl From<NativeMenu> for NativeMenuItem
Source§fn from(menu: NativeMenu) -> Self
fn from(menu: NativeMenu) -> Self
Converts to this type from the input type.
Source§impl From<NativeMenuCommand> for NativeMenuItem
impl From<NativeMenuCommand> for NativeMenuItem
Source§fn from(command: NativeMenuCommand) -> Self
fn from(command: NativeMenuCommand) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NativeMenuItem
impl PartialEq for NativeMenuItem
impl StructuralPartialEq for NativeMenuItem
Auto Trait Implementations§
impl Forget for NativeMenuItem
impl Freeze for NativeMenuItem
impl Move for NativeMenuItem
impl RefUnwindSafe for NativeMenuItem
impl Send for NativeMenuItemwhere
RawVecInner: Send,
impl Sync for NativeMenuItemwhere
RawVecInner: Sync,
impl Unpin for NativeMenuItem
impl UnsafeUnpin for NativeMenuItemwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<NativeMenuItem>: UnsafeUnpin,
impl UnwindSafe for NativeMenuItemwhere
RawVecInner: 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