pub enum PurescriptElementType {
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,
Tick,
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
Tick
IntLiteral
NumberLiteral
StringLiteral
CharLiteral
BooleanLiteral
Identifier
UpperIdentifier
Operator
QualifiedIdentifier
Root
SourceFile
Error
Eof
Trait Implementations§
Source§impl Clone for PurescriptElementType
impl Clone for PurescriptElementType
Source§fn clone(&self) -> PurescriptElementType
fn clone(&self) -> PurescriptElementType
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 PurescriptElementType
impl Debug for PurescriptElementType
Source§impl<'de> Deserialize<'de> for PurescriptElementType
impl<'de> Deserialize<'de> for PurescriptElementType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ElementType for PurescriptElementType
impl ElementType for PurescriptElementType
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 From<PurescriptElementType> for PurescriptTokenType
impl From<PurescriptElementType> for PurescriptTokenType
Source§fn from(element: PurescriptElementType) -> Self
fn from(element: PurescriptElementType) -> Self
Converts to this type from the input type.
Source§impl From<PurescriptTokenType> for PurescriptElementType
impl From<PurescriptTokenType> for PurescriptElementType
Source§fn from(token: PurescriptTokenType) -> Self
fn from(token: PurescriptTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for PurescriptElementType
impl Hash for PurescriptElementType
Source§impl PartialEq for PurescriptElementType
impl PartialEq for PurescriptElementType
Source§impl Serialize for PurescriptElementType
impl Serialize for PurescriptElementType
impl Copy for PurescriptElementType
impl Eq for PurescriptElementType
impl StructuralPartialEq for PurescriptElementType
Auto Trait Implementations§
impl Freeze for PurescriptElementType
impl RefUnwindSafe for PurescriptElementType
impl Send for PurescriptElementType
impl Sync for PurescriptElementType
impl Unpin for PurescriptElementType
impl UnwindSafe for PurescriptElementType
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