pub struct MenuItem { /* private fields */ }Implementations§
Source§impl MenuItem
impl MenuItem
pub fn icon(self, icon: impl Into<String>) -> Self
pub fn shortcut(self, shortcut: impl Into<String>) -> Self
pub fn danger(self, danger: bool) -> Self
pub fn disabled(self, disabled: bool) -> Self
pub fn on_click(self, action: impl Fn() + 'static) -> FloatingMenu
pub fn on_click_env( self, action: impl Fn(&Environment) + 'static, ) -> FloatingMenu
Auto Trait Implementations§
impl !RefUnwindSafe for MenuItem
impl !Send for MenuItem
impl !Sync for MenuItem
impl !UnwindSafe for MenuItem
impl Freeze for MenuItem
impl Unpin for MenuItem
impl UnsafeUnpin 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