Enum donet_core::parser::lexer::DCToken
source · pub enum DCToken {
Show 63 variants
Whitespace,
Comment,
Newline,
BooleanLiteral(bool),
DecimalLiteral(i64),
OctalLiteral(String),
HexLiteral(String),
BinaryLiteral(String),
FloatLiteral(f64),
CharacterLiteral(char),
StringLiteral(String),
EscapeCharacter(String),
CharT,
Int8T,
Int16T,
Int32T,
Int64T,
UInt8T,
BoolT,
UInt16T,
UInt32T,
UInt64T,
Float32T,
Float64T,
Int8ArrayT,
Int16ArrayT,
Int32ArrayT,
UInt8ArrayT,
UInt16ArrayT,
UInt32ArrayT,
UInt32UInt8ArrayT,
StringT,
BlobT,
Blob32T,
DClass,
Struct,
Keyword,
Typedef,
From,
Import,
Switch,
Case,
Default,
Break,
Identifier(String),
DCKeyword(String),
ViewSuffix(String),
Percent,
Star,
Plus,
Hyphen,
ForwardSlash,
Period,
OpenParenthesis,
CloseParenthesis,
OpenBraces,
CloseBraces,
OpenBrackets,
CloseBrackets,
Comma,
Semicolon,
Equals,
Colon,
}
Variants§
Whitespace
Comment
Newline
BooleanLiteral(bool)
DecimalLiteral(i64)
OctalLiteral(String)
HexLiteral(String)
BinaryLiteral(String)
FloatLiteral(f64)
CharacterLiteral(char)
StringLiteral(String)
EscapeCharacter(String)
CharT
Int8T
Int16T
Int32T
Int64T
UInt8T
BoolT
UInt16T
UInt32T
UInt64T
Float32T
Float64T
Int8ArrayT
Int16ArrayT
Int32ArrayT
UInt8ArrayT
UInt16ArrayT
UInt32ArrayT
UInt32UInt8ArrayT
StringT
BlobT
Blob32T
DClass
Struct
Keyword
Typedef
From
Import
Switch
Case
Default
Break
Identifier(String)
DCKeyword(String)
ViewSuffix(String)
Percent
Star
Plus
Hyphen
ForwardSlash
Period
OpenParenthesis
CloseParenthesis
OpenBraces
CloseBraces
OpenBrackets
CloseBrackets
Comma
Semicolon
Equals
Colon
Trait Implementations§
impl StructuralPartialEq for DCToken
Auto Trait Implementations§
impl Freeze for DCToken
impl RefUnwindSafe for DCToken
impl Send for DCToken
impl Sync for DCToken
impl Unpin for DCToken
impl UnwindSafe for DCToken
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)