pub enum MenuItem {
Button {
label: NativeString,
action: Rc<dyn Fn()>,
},
Label {
label: NativeString,
},
Separator,
}
Variants§
Implementations§
Auto Trait Implementations§
impl Freeze for MenuItem
impl !RefUnwindSafe for MenuItem
impl !Send for MenuItem
impl !Sync 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