pub enum Value {
Null,
Bool(bool),
I64(i64),
F64(f64),
String(Box<str>),
Array(Vec<Value>),
Object(Object),
}Expand description
Dependency-free dynamic value tree — the erased currency of the crate::schema::DynSchema view.
Object entries preserve insertion order (DV-1) and integer/float variants are kept strictly apart so number fidelity cannot silently degrade.
Variants§
Null
Absent value.
Bool(bool)
Boolean.
I64(i64)
Signed integer with exact precision.
F64(f64)
IEEE-754 double.
String(Box<str>)
UTF-8 string.
Array(Vec<Value>)
Ordered sequence.
Object(Object)
Insertion-ordered map.
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 UnsafeUnpin 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