pub struct MenuItem { /* private fields */ }Expand description
Represents an option within a Menu. They will always have an associated action that will be executed when activated.
§Remark
This type is managed by nappgui itself. Rust does not have its ownership. When the menu object is dropped, all components assciated with it will be automatically released.
Implementations§
Trait Implementations§
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