pub enum JsonToken<'t> {
Begin {
node: usize,
raw: bool,
elem: bool,
},
Key(&'t str, usize),
Scalar {
node: usize,
elem: bool,
},
End {
node: usize,
raw: bool,
},
}Expand description
A token of JsonTree::tokens.
Variants§
Begin
The start of an array or an object, with true in elem when it is an element of an array. raw marks the array around a scalar at the root.
Key(&'t str, usize)
A key, with the node of its value.
Scalar
A scalar, with true when it is an element of an array. The scalar at the root is not an element.
End
Trait Implementations§
Auto Trait Implementations§
impl<'t> Freeze for Token<'t>
impl<'t> RefUnwindSafe for Token<'t>
impl<'t> Send for Token<'t>
impl<'t> Sync for Token<'t>
impl<'t> Unpin for Token<'t>
impl<'t> UnsafeUnpin for Token<'t>
impl<'t> UnwindSafe for Token<'t>
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