pub struct EuvCascaderOption {
pub value: &'static str,
pub label: &'static str,
pub children: Vec<EuvCascaderOption>,
}Expand description
One choice of a euv_cascader column.
A choice carries the machine value written into the selection signal,
the label the reader sees, and the choices one level below it. The
struct is recursive, so it cannot be Copy; it derives Clone so a
caller can build several pickers from one shared template.
Fields§
§value: &'static strThe machine value of the choice.
label: &'static strThe label the reader sees.
children: Vec<EuvCascaderOption>The choices one level below this one.
Implementations§
Source§impl EuvCascaderOption
impl EuvCascaderOption
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_children(&self) -> &Vec<EuvCascaderOption>
pub fn get_mut_children(&mut self) -> &mut Vec<EuvCascaderOption>
pub fn set_children(&mut self, val: Vec<EuvCascaderOption>) -> &mut Self
Trait Implementations§
Source§impl Clone for EuvCascaderOption
impl Clone for EuvCascaderOption
Source§impl Debug for EuvCascaderOption
impl Debug for EuvCascaderOption
Auto Trait Implementations§
impl Freeze for EuvCascaderOption
impl RefUnwindSafe for EuvCascaderOption
impl Send for EuvCascaderOption
impl Sync for EuvCascaderOption
impl Unpin for EuvCascaderOption
impl UnsafeUnpin for EuvCascaderOption
impl UnwindSafe for EuvCascaderOption
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