pub enum Value {
Number(i64),
Float(f64),
String(String),
Time(i64),
Duration(i64),
Compound(CompoundKind, Vec<Value>),
Null,
}Variants§
Number(i64)
Float(f64)
String(String)
Time(i64)
Time as nanoseconds since Unix epoch (consistent with Go implementation).
Duration(i64)
Duration as nanoseconds (consistent with Go implementation).
Compound(CompoundKind, Vec<Value>)
A compound value: a flat sequence of values. The CompoundKind tag
identifies the interpretation. For lists and pairs, elements are stored
directly. For structs and maps, keys/field-names and values are
interleaved: [k1, v1, k2, v2, …].
Null
Trait Implementations§
Source§impl Ord for Value
Available on crate feature edge only.
impl Ord for Value
Available on crate feature
edge only.Source§impl PartialOrd for Value
Available on crate feature edge only.
impl PartialOrd for Value
Available on crate feature
edge only.impl Eq for Value
Available on crate feature
edge only.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