pub enum WidgetValue {
Bool(bool),
Float(f64),
Int(i64),
Text(String),
}Expand description
Captured widget value for stateful controls.
Variants§
Bool(bool)
Boolean value from checkboxes/toggles.
Float(f64)
Floating-point value from sliders/drag values.
Int(i64)
Integer value from drag values/combos.
Text(String)
Text value from text edits.
Implementations§
Trait Implementations§
Source§impl Clone for WidgetValue
impl Clone for WidgetValue
Source§fn clone(&self) -> WidgetValue
fn clone(&self) -> WidgetValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WidgetValue
impl Debug for WidgetValue
Source§impl<'de> Deserialize<'de> for WidgetValue
impl<'de> Deserialize<'de> for WidgetValue
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WidgetValue
impl PartialEq for WidgetValue
Source§impl Serialize for WidgetValue
impl Serialize for WidgetValue
impl StructuralPartialEq for WidgetValue
Auto Trait Implementations§
impl Freeze for WidgetValue
impl RefUnwindSafe for WidgetValue
impl Send for WidgetValue
impl Sync for WidgetValue
impl Unpin for WidgetValue
impl UnsafeUnpin for WidgetValue
impl UnwindSafe for WidgetValue
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