pub enum Node<'a> {
ObjectStart,
ArrayStart,
Str(&'a str),
Int(i64),
Float(f64),
BigInt(&'a str),
Bool(bool),
Null,
}Expand description
A single value-position token.
Variants§
ObjectStart
{; iterate with Reader::object_first_key / Reader::object_next_key.
ArrayStart
[; iterate with Reader::array_first / Reader::array_next.
Str(&'a str)
String value, decoded. Borrows the parser; consume before advancing.
Int(i64)
Integer representable in i64.
Float(f64)
Floating-point number, exactly rounded.
BigInt(&'a str)
Integer too large for i64, as its ASCII digits.
Bool(bool)
true or false.
Null
null.
Trait Implementations§
impl<'a> Copy for Node<'a>
impl<'a> StructuralPartialEq for Node<'a>
Auto Trait Implementations§
impl<'a> Freeze for Node<'a>
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> UnsafeUnpin 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