pub enum SyntaxKind {
Show 76 variants
Number,
Word,
String,
UnterminatedString,
IfKw,
ElseKw,
ForKw,
WhileKw,
ReturnKw,
BreakKw,
ContinueKw,
FnKw,
LetKw,
MutKw,
AsKw,
LoopKw,
TrueKw,
FalseKw,
NilKw,
AndKw,
OrKw,
NotKw,
VarKw,
ConstKw,
ImportKw,
ExportKw,
TypeKw,
InterfaceKw,
NewKw,
SelfKw,
RecordKw,
StructKw,
ObjectKw,
GtEq,
LtEq,
EqEq,
FatArrow,
BangEq,
PipeGt,
Star,
Plus,
Minus,
Slash,
Percent,
Eq,
Lt,
Gt,
Backslash,
Caret,
PipePipe,
AmpAmp,
Pipe,
Amp,
OpenParen,
CloseParen,
OpenBrace,
CloseBrace,
OpenBracket,
CloseBracket,
Hash,
Bang,
Dollar,
Whitespace,
Comma,
Colon,
DoubleColon,
Period,
DoublePeriod,
DoublePeriodLessThan,
LineComment,
BlockComment,
UnterminatedBlockComment,
Unknown,
QuestionMark,
At,
SemiColon,
}Variants§
Number
Word
String
UnterminatedString
IfKw
ElseKw
ForKw
WhileKw
ReturnKw
BreakKw
ContinueKw
FnKw
LetKw
MutKw
AsKw
LoopKw
TrueKw
FalseKw
NilKw
AndKw
OrKw
NotKw
VarKw
ConstKw
ImportKw
ExportKw
TypeKw
InterfaceKw
NewKw
SelfKw
RecordKw
StructKw
ObjectKw
GtEq
LtEq
EqEq
FatArrow
BangEq
PipeGt
Star
Plus
Minus
Slash
Percent
Eq
Lt
Gt
Backslash
Caret
PipePipe
AmpAmp
Pipe
Amp
OpenParen
CloseParen
OpenBrace
CloseBrace
OpenBracket
CloseBracket
Hash
Bang
Dollar
Whitespace
Comma
Colon
DoubleColon
Period
DoublePeriod
DoublePeriodLessThan
LineComment
BlockComment
UnterminatedBlockComment
Unknown
QuestionMark
At
SemiColon
Trait Implementations§
Source§impl Clone for SyntaxKind
impl Clone for SyntaxKind
Source§fn clone(&self) -> SyntaxKind
fn clone(&self) -> SyntaxKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SyntaxKind
Source§impl Debug for SyntaxKind
impl Debug for SyntaxKind
impl Eq for SyntaxKind
Source§impl Hash for SyntaxKind
impl Hash for SyntaxKind
Source§impl PartialEq for SyntaxKind
impl PartialEq for SyntaxKind
Source§fn eq(&self, other: &SyntaxKind) -> bool
fn eq(&self, other: &SyntaxKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SyntaxKind
Auto Trait Implementations§
impl Freeze for SyntaxKind
impl RefUnwindSafe for SyntaxKind
impl Send for SyntaxKind
impl Sync for SyntaxKind
impl Unpin for SyntaxKind
impl UnsafeUnpin for SyntaxKind
impl UnwindSafe for SyntaxKind
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