#[non_exhaustive]
pub enum Token {
U64(u64),
I64(i64),
F64(f64),
U128(u128),
I128(i128),
Char(char),
Bool(bool),
Str(String),
None,
Error,
Sval(Sval),
Serde(Serde),
}
Expand description
A tokenized representation of the captured value.
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.
U64(u64)
I64(i64)
F64(f64)
U128(u128)
I128(i128)
Char(char)
Bool(bool)
Str(String)
None
Error
Sval(Sval)
Serde(Serde)
Trait Implementations
impl StructuralPartialEq for Token
Auto Trait Implementations
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more