pub struct ContextMenuItem { /* private fields */ }Implementations§
Source§impl ContextMenuItem
impl ContextMenuItem
pub fn new(label: String) -> ContextMenuItem
pub fn icon(self, icon: String) -> ContextMenuItem
pub fn action(self, action: String) -> ContextMenuItem
pub fn disabled(self, disabled: bool) -> ContextMenuItem
Auto Trait Implementations§
impl Freeze for ContextMenuItem
impl RefUnwindSafe for ContextMenuItem
impl Send for ContextMenuItem
impl Sync for ContextMenuItem
impl Unpin for ContextMenuItem
impl UnwindSafe for ContextMenuItem
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