pub enum ElementValue {
Null,
Bool(bool),
Float(OrderedFloat<f64>),
Integer(i64),
String(Arc<str>),
List(Vec<ElementValue>),
Object(ElementPropertyMap),
}Variants§
Null
Bool(bool)
Float(OrderedFloat<f64>)
Integer(i64)
String(Arc<str>)
List(Vec<ElementValue>)
Object(ElementPropertyMap)
Trait Implementations§
Source§impl Clone for ElementValue
impl Clone for ElementValue
Source§fn clone(&self) -> ElementValue
fn clone(&self) -> ElementValue
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 ElementValue
impl Debug for ElementValue
Source§impl Default for ElementValue
impl Default for ElementValue
Source§fn default() -> ElementValue
fn default() -> ElementValue
Returns the “default value” for a type. Read more
Source§impl From<&ElementValue> for Value
impl From<&ElementValue> for Value
Source§fn from(val: &ElementValue) -> Self
fn from(val: &ElementValue) -> Self
Converts to this type from the input type.
Source§impl From<&ElementValue> for VariableValue
impl From<&ElementValue> for VariableValue
Source§fn from(val: &ElementValue) -> Self
fn from(val: &ElementValue) -> Self
Converts to this type from the input type.
Source§impl From<&Value> for ElementValue
impl From<&Value> for ElementValue
Source§impl Hash for ElementValue
impl Hash for ElementValue
Source§impl PartialEq for ElementValue
impl PartialEq for ElementValue
Source§impl TryInto<ElementValue> for &VariableValue
impl TryInto<ElementValue> for &VariableValue
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<ElementValue, ConversionError>
fn try_into(self) -> Result<ElementValue, ConversionError>
Performs the conversion.
impl Eq for ElementValue
impl StructuralPartialEq for ElementValue
Auto Trait Implementations§
impl Freeze for ElementValue
impl RefUnwindSafe for ElementValue
impl Send for ElementValue
impl Sync for ElementValue
impl Unpin for ElementValue
impl UnwindSafe for ElementValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.