pub enum Node<'a> {
Null,
Boolean(bool),
String(JsonString<'a>),
Number(JsonNumber<'a>),
Object {
length: usize,
},
Array {
length: usize,
},
}
Expand description
A single value in a Document
.
Variants§
Null
A null value.
Boolean(bool)
A boolean value.
String(JsonString<'a>)
A string value.
Number(JsonNumber<'a>)
A numerical value.
Object
An object value with len
key-value pairs following it.
Array
An array with len
values following it.
Trait Implementations§
source§impl<'a> PartialEq for Node<'a>
impl<'a> PartialEq for Node<'a>
impl<'a> Eq for Node<'a>
impl<'a> StructuralEq for Node<'a>
impl<'a> StructuralPartialEq for Node<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Node<'a>
impl<'a> Send for Node<'a>
impl<'a> Sync for Node<'a>
impl<'a> Unpin for Node<'a>
impl<'a> UnwindSafe for Node<'a>
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