pub enum VariableValue {
Boolean(bool),
Number(f64),
String(String),
Rgb(Box<Rgb>),
Rgba(Box<Rgba>),
VariableAlias(Box<VariableAlias>),
}
Expand description
VariableValue : The value for the variable. The value must match the variable’s type. If setting to a variable alias, the alias must resolve to this type. The value for the variable. The value must match the variable’s type. If setting to a variable alias, the alias must resolve to this type.
Variants§
Boolean(bool)
Number(f64)
String(String)
Rgb(Box<Rgb>)
Rgba(Box<Rgba>)
VariableAlias(Box<VariableAlias>)
Trait Implementations§
Source§impl Clone for VariableValue
impl Clone for VariableValue
Source§fn clone(&self) -> VariableValue
fn clone(&self) -> VariableValue
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 VariableValue
impl Debug for VariableValue
Source§impl Default for VariableValue
impl Default for VariableValue
Source§impl<'de> Deserialize<'de> for VariableValue
impl<'de> Deserialize<'de> for VariableValue
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 VariableValue
impl PartialEq for VariableValue
Source§impl Serialize for VariableValue
impl Serialize for VariableValue
impl StructuralPartialEq for VariableValue
Auto Trait Implementations§
impl Freeze for VariableValue
impl RefUnwindSafe for VariableValue
impl Send for VariableValue
impl Sync for VariableValue
impl Unpin for VariableValue
impl UnwindSafe for VariableValue
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