pub enum Value {
Number(f64),
String(String),
Unit {
value: f64,
unit: String,
},
Color(String),
Boolean(bool),
Array(Vec<Value>),
Object(HashMap<String, Value>),
Null,
}Expand description
A value that can be stored in the execution context
Variants§
Number(f64)
Number value
String(String)
String value
Unit
Number with unit (e.g., 16px, 2em)
Color(String)
Color value (hex format)
Boolean(bool)
Boolean value
Array(Vec<Value>)
Array of values
Object(HashMap<String, Value>)
Object/Map of key-value pairs
Null
Null/undefined value
Implementations§
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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