pub enum Value {
}Expand description
A value, potentially containing other values. All the sub-values live in the same allocator.
Variants§
Null
Bool(bool)
Int64(i64)
Float(f64)
String(String)
Text, in UTF8
Bytes(Vec<u8>)
Binary blob.
Variant0(VariantIdx)
A variant with 0 arguments.
Ref(Offset)
A reference to a full value (which comes at an earlier offset).
Pointer(Offset)
An implicitly followed reference to a full value (which comes at an earlier offset).
Tag(Tag, Box<Value>)
Array(Vec<Value>)
Map(Vec<(Value, Value)>)
Variant(VariantIdx, Vec<Value>)
Trait Implementations§
Source§impl PartialOrd for Value
impl PartialOrd for Value
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