pub struct DropdownMenuItem {
pub text: String,
pub leading_icon: Option<View>,
pub trailing_icon: Option<View>,
pub on_click: Rc<dyn Fn()>,
pub enabled: bool,
}Expand description
A single item inside a DropdownMenu.
Fields§
§text: String§leading_icon: Option<View>§trailing_icon: Option<View>§on_click: Rc<dyn Fn()>§enabled: boolImplementations§
Trait Implementations§
Source§impl Clone for DropdownMenuItem
impl Clone for DropdownMenuItem
Source§fn clone(&self) -> DropdownMenuItem
fn clone(&self) -> DropdownMenuItem
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for DropdownMenuItem
impl !Send for DropdownMenuItem
impl !Sync for DropdownMenuItem
impl !UnwindSafe for DropdownMenuItem
impl Freeze for DropdownMenuItem
impl Unpin for DropdownMenuItem
impl UnsafeUnpin for DropdownMenuItem
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