pub enum JsonItem {
Null,
Bool(bool),
Number,
String(String),
Array(Vec<usize>),
Object(Vec<(String, usize)>),
}Expand description
The kind of a node, with its children.
Variants§
Null
Bool(bool)
Number
A number. Its text is the text of the node.
String(String)
A string with its escapes decoded.
Array(Vec<usize>)
The nodes of the elements.
Object(Vec<(String, usize)>)
The decoded keys and the nodes of the values, in the order of the input.
Trait Implementations§
impl Eq for JsonItem
impl StructuralPartialEq for JsonItem
Auto Trait Implementations§
impl Freeze for JsonItem
impl RefUnwindSafe for JsonItem
impl Send for JsonItem
impl Sync for JsonItem
impl Unpin for JsonItem
impl UnsafeUnpin for JsonItem
impl UnwindSafe for JsonItem
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