pub struct EuvTransferItem {
pub value: &'static str,
pub label: &'static str,
pub disabled: bool,
}Expand description
One row of a transfer list.
Carries the machine value the row is keyed by, the label the reader sees, and whether the row can be marked at all.
The row is comparable so that a caller can keep a whole list of them in a signal — the transfer does not own its rows, the page does.
Fields§
§value: &'static strThe machine value of the row.
label: &'static strThe label the reader sees.
disabled: boolWhether the row is disabled.
A disabled row cannot be marked, so clicking it never writes into the selection signal.
Implementations§
Source§impl EuvTransferItem
impl EuvTransferItem
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 EuvTransferItem
impl Clone for EuvTransferItem
impl Copy for EuvTransferItem
Source§impl Debug for EuvTransferItem
impl Debug for EuvTransferItem
Source§impl Default for EuvTransferItem
impl Default for EuvTransferItem
Source§impl PartialEq for EuvTransferItem
impl PartialEq for EuvTransferItem
impl StructuralPartialEq for EuvTransferItem
Auto Trait Implementations§
impl Freeze for EuvTransferItem
impl RefUnwindSafe for EuvTransferItem
impl Send for EuvTransferItem
impl Sync for EuvTransferItem
impl Unpin for EuvTransferItem
impl UnsafeUnpin for EuvTransferItem
impl UnwindSafe for EuvTransferItem
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