pub enum Token {
Show 13 variants
StartObject,
EndObject,
StartArray,
EndArray,
Colon,
Comma,
Str(String),
Float(f64),
Integer(i64),
LazyNumeric(LazyNumeric),
Null,
Boolean(bool),
EndOfInput,
}
Expand description
Enumeration of generated JSON tokens
Variants§
StartObject
Start of a JSON object
EndObject
End of a JSON object
StartArray
Start of a JSON array
EndArray
End of a JSON array
Colon
A colon (KV separator)
Comma
A lowly comma
Str(String)
A string value
Float(f64)
A float value
Integer(i64)
An integral value
LazyNumeric(LazyNumeric)
A lazy numeric value
Null
A null value
Boolean(bool)
A boolean value (true/false)
EndOfInput
The end of input token
Trait Implementations§
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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