pub struct EuvSegmentedOption {
pub value: &'static str,
pub label: &'static str,
pub disabled: bool,
}Expand description
One entry of the euv_segmented control.
Carries the machine value written into the selection signal, the label the user reads, and whether the entry can be picked at all.
Fields§
§value: &'static strThe machine value written into the selection signal when picked.
label: &'static strThe display label shown on the segment.
disabled: boolWhether the segment is disabled.
A disabled segment is marked disabled and cannot be picked, so it
never writes into the selection signal.
Implementations§
Source§impl EuvSegmentedOption
impl EuvSegmentedOption
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
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_disabled(&self) -> bool
pub fn get_mut_disabled(&mut self) -> &mut bool
pub fn set_disabled(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for EuvSegmentedOption
impl Clone for EuvSegmentedOption
impl Copy for EuvSegmentedOption
Source§impl Debug for EuvSegmentedOption
impl Debug for EuvSegmentedOption
Auto Trait Implementations§
impl Freeze for EuvSegmentedOption
impl RefUnwindSafe for EuvSegmentedOption
impl Send for EuvSegmentedOption
impl Sync for EuvSegmentedOption
impl Unpin for EuvSegmentedOption
impl UnsafeUnpin for EuvSegmentedOption
impl UnwindSafe for EuvSegmentedOption
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