pub struct MenuItem { /* private fields */ }Implementations§
Source§impl MenuItem
impl MenuItem
Sourcepub fn get_value(&self) -> i32
pub fn get_value(&self) -> i32
Gets the integer value of the menu item.
For checkmark menu items, 1 means checked, 0 unchecked. For option menu items, the value indicates the array index of the currently selected option.
Trait Implementations§
impl Eq for MenuItem
impl Send for MenuItem
impl StructuralPartialEq for MenuItem
impl Sync for MenuItem
Auto Trait Implementations§
impl Freeze for MenuItem
impl RefUnwindSafe for MenuItem
impl Unpin 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