pub enum PropValue {
String(String),
Number(f64),
Bool(bool),
Array(Vec<PropValue>),
Object(HashMap<String, PropValue>),
Null,
}Expand description
A property value.
Variants§
String(String)
String value
Number(f64)
Numeric value
Bool(bool)
Boolean value
Array(Vec<PropValue>)
Array of values
Object(HashMap<String, PropValue>)
Nested object
Null
Null/undefined
Implementations§
Trait Implementations§
impl StructuralPartialEq for PropValue
Auto Trait Implementations§
impl Freeze for PropValue
impl RefUnwindSafe for PropValue
impl Send for PropValue
impl Sync for PropValue
impl Unpin for PropValue
impl UnsafeUnpin for PropValue
impl UnwindSafe for PropValue
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