pub struct TextMenuItem {
pub label: String,
pub action: Rc<dyn Fn()>,
}Expand description
One tappable action.
Fields§
§label: String§action: Rc<dyn Fn()>Implementations§
Trait Implementations§
Source§impl Clone for TextMenuItem
impl Clone for TextMenuItem
Source§fn clone(&self) -> TextMenuItem
fn clone(&self) -> TextMenuItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextMenuItem
impl Debug for TextMenuItem
Auto Trait Implementations§
impl !RefUnwindSafe for TextMenuItem
impl !Send for TextMenuItem
impl !Sync for TextMenuItem
impl !UnwindSafe for TextMenuItem
impl Freeze for TextMenuItem
impl Unpin for TextMenuItem
impl UnsafeUnpin for TextMenuItem
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