pub enum PurescriptSyntaxKind {
Show 84 variants
Whitespace,
Newline,
Comment,
Ado,
Case,
Class,
Data,
Derive,
Do,
Else,
False,
Forall,
Foreign,
If,
Import,
In,
Infix,
Infixl,
Infixr,
Instance,
Let,
Module,
Newtype,
Of,
Then,
True,
Type,
Where,
Arrow,
FatArrow,
Backslash,
Pipe,
Equal,
ColonColon,
Dot,
DotDot,
Plus,
Minus,
Star,
Slash,
Percent,
Caret,
EqualEqual,
NotEqual,
Less,
Greater,
LessEqual,
GreaterEqual,
And,
Or,
Append,
Compose,
ComposeFlipped,
Apply,
ApplyFlipped,
Bind,
BindFlipped,
LeftParen,
RightParen,
LeftBrace,
RightBrace,
LeftBracket,
RightBracket,
Comma,
Semicolon,
Colon,
Question,
Exclamation,
At,
Underscore,
Backtick,
IntLiteral,
NumberLiteral,
StringLiteral,
CharLiteral,
BooleanLiteral,
Identifier,
UpperIdentifier,
Operator,
QualifiedIdentifier,
Root,
SourceFile,
Error,
Eof,
}Variants§
Whitespace
Newline
Comment
Ado
Case
Class
Data
Derive
Do
Else
False
Forall
Foreign
If
Import
In
Infix
Infixl
Infixr
Instance
Let
Module
Newtype
Of
Then
True
Type
Where
Arrow
FatArrow
Backslash
Pipe
Equal
ColonColon
Dot
DotDot
Plus
Minus
Star
Slash
Percent
Caret
EqualEqual
NotEqual
Less
Greater
LessEqual
GreaterEqual
And
Or
Append
Compose
ComposeFlipped
Apply
ApplyFlipped
Bind
BindFlipped
LeftParen
RightParen
LeftBrace
RightBrace
LeftBracket
RightBracket
Comma
Semicolon
Colon
Question
Exclamation
At
Underscore
Backtick
IntLiteral
NumberLiteral
StringLiteral
CharLiteral
BooleanLiteral
Identifier
UpperIdentifier
Operator
QualifiedIdentifier
Root
SourceFile
Error
Eof
Trait Implementations§
Source§impl Clone for PurescriptSyntaxKind
impl Clone for PurescriptSyntaxKind
Source§fn clone(&self) -> PurescriptSyntaxKind
fn clone(&self) -> PurescriptSyntaxKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PurescriptSyntaxKind
impl Debug for PurescriptSyntaxKind
Source§impl ElementType for PurescriptSyntaxKind
impl ElementType for PurescriptSyntaxKind
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
Source§impl Hash for PurescriptSyntaxKind
impl Hash for PurescriptSyntaxKind
Source§impl PartialEq for PurescriptSyntaxKind
impl PartialEq for PurescriptSyntaxKind
Source§impl Serialize for PurescriptSyntaxKind
impl Serialize for PurescriptSyntaxKind
Source§impl TokenType for PurescriptSyntaxKind
impl TokenType for PurescriptSyntaxKind
Source§const END_OF_STREAM: Self = Self::Eof
const END_OF_STREAM: Self = Self::Eof
A constant representing the end of the input stream. Read more
Source§type Role = UniversalTokenRole
type Role = UniversalTokenRole
The associated role type for this token kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this token matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalTokenRole) -> bool
fn is_universal(&self, role: UniversalTokenRole) -> bool
Returns true if this token matches the specified universal role.
Source§fn is_comment(&self) -> bool
fn is_comment(&self) -> bool
Returns true if this token represents a comment. Read more
Source§fn is_whitespace(&self) -> bool
fn is_whitespace(&self) -> bool
Returns true if this token represents whitespace. Read more
Source§fn is_error(&self) -> bool
fn is_error(&self) -> bool
Returns true if this token represents an error condition. Read more
Source§fn is_ignored(&self) -> bool
fn is_ignored(&self) -> bool
Returns true if this token represents trivia (whitespace, comments, etc.). Read more
Source§fn is_end_of_stream(&self) -> bool
fn is_end_of_stream(&self) -> bool
Returns true if this token represents the end of the input stream. Read more
impl Copy for PurescriptSyntaxKind
impl Eq for PurescriptSyntaxKind
impl StructuralPartialEq for PurescriptSyntaxKind
Auto Trait Implementations§
impl Freeze for PurescriptSyntaxKind
impl RefUnwindSafe for PurescriptSyntaxKind
impl Send for PurescriptSyntaxKind
impl Sync for PurescriptSyntaxKind
impl Unpin for PurescriptSyntaxKind
impl UnwindSafe for PurescriptSyntaxKind
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