pub struct EuvDropdownItem {
pub label: &'static str,
pub value: &'static str,
}Expand description
One entry of the euv_dropdown menu.
Carries the display label and the opaque value handed to on_select.
Fields§
§label: &'static strThe display label.
value: &'static strThe opaque value passed to the select callback.
Implementations§
Source§impl EuvDropdownItem
impl EuvDropdownItem
pub fn get_label(&self) -> &'static str
pub fn get_mut_label(&mut self) -> &mut &'static str
pub fn set_label(&mut self, val: &'static str) -> &mut Self
pub fn get_value(&self) -> &'static str
pub fn get_mut_value(&mut self) -> &mut &'static str
pub fn set_value(&mut self, val: &'static str) -> &mut Self
Trait Implementations§
Source§impl Clone for EuvDropdownItem
impl Clone for EuvDropdownItem
Source§fn clone(&self) -> EuvDropdownItem
fn clone(&self) -> EuvDropdownItem
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 moreimpl Copy for EuvDropdownItem
Source§impl Debug for EuvDropdownItem
impl Debug for EuvDropdownItem
Source§impl Default for EuvDropdownItem
impl Default for EuvDropdownItem
Source§fn default() -> EuvDropdownItem
fn default() -> EuvDropdownItem
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EuvDropdownItem
impl RefUnwindSafe for EuvDropdownItem
impl Send for EuvDropdownItem
impl Sync for EuvDropdownItem
impl Unpin for EuvDropdownItem
impl UnsafeUnpin for EuvDropdownItem
impl UnwindSafe for EuvDropdownItem
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