pub enum ScanToken {
}Expand description
Token kinds with minimal data - strings/numbers are just indices into the buffer.
Variants§
ObjectStart
{
ObjectEnd
}
ArrayStart
[
ArrayEnd
]
Colon
:
Comma
,
Null
null
True
true
False
false
String
A string literal - indices point to content (excluding quotes)
Fields
Number
A number literal - indices point to the raw number text
Fields
§
hint: NumberHintHint about number format
Eof
End of input reached
NeedMore
Buffer exhausted mid-token - need refill for streaming
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