#[non_exhaustive]pub enum Token {
BeginArray,
BeginObject,
BoolValue(bool),
EndArray,
EndObject,
Name(String),
NullValue,
NumberValue(u32),
StringValue(String),
}Expand description
A token captured by CapturingBackend.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BeginArray
Represents [.
BeginObject
Represents {.
BoolValue(bool)
A boolean value.
EndArray
Represents ].
EndObject
Represents }.
Name(String)
An object key.
NullValue
A null value.
NumberValue(u32)
A u32 numeric value.
StringValue(String)
A string value.
Trait Implementations§
impl Eq for Token
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 UnsafeUnpin 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