pub enum TokenKind {
}Expand description
Part 21 token categories.
Variants§
Name(String)
Standard keyword or entity name.
UserName(String)
User-defined !-prefixed keyword.
Instance(u64)
Numeric #-prefixed entity-instance name.
Integer(i64)
Signed decimal integer.
Real(f64)
Decimal real, including an optional exponent.
Enumeration(String)
Dot-delimited enumeration or logical literal.
String(Vec<u8>)
Bytes between apostrophe delimiters, before escape decoding.
Binary(BinaryValue)
Decoded quoted hexadecimal binary literal.
Resource(String)
Edition-3 resource token.
LParen
Opening parenthesis.
RParen
Closing parenthesis.
Comma
Parameter separator.
Semicolon
Statement terminator.
Equals
Assignment operator.
Omitted
Omitted-value marker $.
Derived
Derived-value marker *.
Trait Implementations§
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl Freeze for TokenKind
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnsafeUnpin for TokenKind
impl UnwindSafe for TokenKind
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