pub enum Token {
}Expand description
Parsed token.
Variants§
Keyword(String)
Keyword token.
UnknownKeywordId(i32)
Unknown keyword id.
Function(String)
Function token.
UnknownFunctionId(i32)
Unknown function id.
Macro(String)
Macro token, without the leading @.
Variable(String)
Variable token, without the leading $.
BareString(String)
Bare identifier/string token.
Property(String)
Property/member token, without the leading ..
QuotedString(String)
Quoted string literal, unescaped.
RawString(String)
Raw string token.
U32(u32)
Unsigned 32-bit integer literal.
U64(u64)
Unsigned 64-bit integer literal.
F64(f64)
Floating-point literal.
Operator(&'static str)
Operator or punctuation token.
UnknownOpcode(u8)
Unknown opcode.
LineEnd
End-of-line 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 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