pub enum Value {
Null,
Bool(bool),
Number(Number),
Text(String),
List(Vec<Node>),
Map(Vec<Entry>),
}Expand description
The kinds of value a document holds.
Variants§
Null
null.
Bool(bool)
true or false.
Number(Number)
A number, kept as it was spelt.
Text(String)
A string.
List(Vec<Node>)
An array.
Map(Vec<Entry>)
An object, its entries in document order; a repeated key is kept.
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Forget for Value
impl Freeze for Valuewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Node>: Freeze,
PhantomData<Entry>: Freeze,
impl Move for Value
impl RefUnwindSafe for Value
impl Send for Valuewhere
RawVecInner: Send,
impl Sync for Valuewhere
RawVecInner: Sync,
impl Unpin for Value
impl UnsafeUnpin for Valuewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Node>: UnsafeUnpin,
PhantomData<Entry>: UnsafeUnpin,
impl UnwindSafe for Valuewhere
RawVecInner: UnwindSafe,
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