pub struct EuvCheckboxGroupOption {
pub value: &'static str,
pub label: &'static str,
pub disabled: bool,
}Expand description
One entry of the euv_checkbox_group option list.
Carries the machine value stored in the checked-values signal, the label the user reads, and whether the option can be toggled at all.
Fields§
§value: &'static strThe machine value stored in the checked-values signal while ticked.
label: &'static strThe display label shown next to the checkbox marker.
disabled: boolWhether the option is disabled.
A disabled option cannot be toggled, so it never writes into the checked-values signal.
Implementations§
Source§impl EuvCheckboxGroupOption
impl EuvCheckboxGroupOption
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 EuvCheckboxGroupOption
impl Clone for EuvCheckboxGroupOption
impl Copy for EuvCheckboxGroupOption
Source§impl Debug for EuvCheckboxGroupOption
impl Debug for EuvCheckboxGroupOption
Auto Trait Implementations§
impl Freeze for EuvCheckboxGroupOption
impl RefUnwindSafe for EuvCheckboxGroupOption
impl Send for EuvCheckboxGroupOption
impl Sync for EuvCheckboxGroupOption
impl Unpin for EuvCheckboxGroupOption
impl UnsafeUnpin for EuvCheckboxGroupOption
impl UnwindSafe for EuvCheckboxGroupOption
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