Enum lexical_scanner::enums::Token
source · [−]pub enum Token {
Show 118 variants
And,
AndAnd,
AndEq,
At,
Backslash,
BitCharacterCode7(String),
BitCharacterCode8(String),
BlockCommentStart(String),
BlockCommentStop(String),
BracketLeft,
BracketRight,
Byte(String),
ByteString(String),
Caret,
CaretEq,
CarriageReturn,
Character(String),
Colon,
Comma,
CurlyBraceLeft,
CurlyBraceRight,
Dollar,
Dot,
DotDot,
DotDotDot,
DotDotEq,
DoubleQuote,
Eq,
EqEq,
Ge,
Gt,
FatArrow,
InnerBlockDoc(String),
InnerLineDoc(String),
Le,
LineComment(String),
Lt,
Minus,
MinusEq,
Or,
OrEq,
OrOr,
OuterBlockDoc(String),
OuterLineDoc(String),
Newline,
Not,
NotEq,
Null,
Floating(String),
Numeric(String),
ParenLeft,
ParenRight,
PathSep,
Percent,
PercentEq,
Plus,
PlusEq,
Pound,
Question,
RArrow,
RawString(String),
RawByteString(String),
Semi,
Shl,
ShlEq,
Shr,
ShrEq,
SingleQuote,
Slash,
SlashEq,
Star,
StarEq,
Stopped(String),
String(String),
Tab,
Undefined,
Underscore,
WhiteSpace,
Word(String),
KW_As,
KW_Async,
KW_Await,
KW_Break,
KW_Const,
KW_Contine,
KW_Crate,
KW_Dyn,
KW_Else,
KW_Enum,
KW_Extern,
KW_False,
KW_Fn,
KW_For,
KW_If,
KW_Impl,
KW_In,
KW_Let,
KW_Loop,
KW_Match,
KW_Mod,
KW_Move,
KW_Mut,
KW_Pub,
KW_Ref,
KW_Return,
KW_SELF,
KW_Self,
KW_Static,
KW_Struct,
KW_Super,
KW_Trait,
KW_True,
KW_Type,
KW_Union,
KW_Unsafe,
KW_Use,
KW_Where,
KW_While,
}
Expand description
Token field and description for lexical scanner
Variants
And
AndAnd
AndEq
At
Backslash
BitCharacterCode7(String)
BitCharacterCode8(String)
BlockCommentStart(String)
BlockCommentStop(String)
BracketLeft
BracketRight
Byte(String)
ByteString(String)
Caret
CaretEq
CarriageReturn
Character(String)
Colon
Comma
CurlyBraceLeft
CurlyBraceRight
Dollar
Dot
DotDot
DotDotDot
DotDotEq
DoubleQuote
Eq
EqEq
Ge
Gt
FatArrow
InnerBlockDoc(String)
InnerLineDoc(String)
Le
LineComment(String)
Lt
Minus
MinusEq
Or
OrEq
OrOr
OuterBlockDoc(String)
OuterLineDoc(String)
Newline
Not
NotEq
Null
Floating(String)
Numeric(String)
ParenLeft
ParenRight
PathSep
Percent
PercentEq
Plus
PlusEq
Pound
Question
RArrow
RawString(String)
RawByteString(String)
Semi
Shl
ShlEq
Shr
ShrEq
SingleQuote
Slash
SlashEq
Star
StarEq
Stopped(String)
String(String)
Tab
Undefined
Underscore
WhiteSpace
Word(String)
KW_As
KW_Async
KW_Await
KW_Break
KW_Const
KW_Contine
KW_Crate
KW_Dyn
KW_Else
KW_Enum
KW_Extern
KW_False
KW_Fn
KW_For
KW_If
KW_Impl
KW_In
KW_Let
KW_Loop
KW_Match
KW_Mod
KW_Move
KW_Mut
KW_Pub
KW_Ref
KW_Return
KW_SELF
KW_Self
KW_Static
KW_Struct
KW_Super
KW_Trait
KW_True
KW_Type
KW_Union
KW_Unsafe
KW_Use
KW_Where
KW_While
Trait Implementations
impl Eq for Token
impl StructuralEq for Token
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more