#[repr(u8)]pub enum RElementType {
Show 89 variants
Whitespace = 0,
Newline = 1,
Comment = 2,
StringLiteral = 3,
IntegerLiteral = 4,
FloatLiteral = 5,
BooleanLiteral = 6,
NullLiteral = 7,
Inf = 8,
NaN = 9,
NA = 10,
NaInteger = 11,
NaReal = 12,
NaComplex = 13,
NaCharacter = 14,
Identifier = 15,
If = 16,
Else = 17,
For = 18,
In = 19,
While = 20,
Repeat = 21,
Next = 22,
Break = 23,
Function = 24,
Return = 25,
True = 26,
False = 27,
Null = 28,
Plus = 29,
Minus = 30,
Star = 31,
Slash = 32,
Percent = 33,
Caret = 34,
Equal = 35,
EqualEqual = 36,
NotEqual = 37,
Less = 38,
Greater = 39,
LessEqual = 40,
GreaterEqual = 41,
And = 42,
Or = 43,
Not = 44,
AndAnd = 45,
OrOr = 46,
Tilde = 47,
LeftArrow = 48,
RightArrow = 49,
DoubleLeftArrow = 50,
DoubleRightArrow = 51,
Pipe = 52,
Operator = 53,
LeftParen = 54,
RightParen = 55,
LeftBracket = 56,
RightBracket = 57,
LeftBrace = 58,
RightBrace = 59,
Comma = 60,
Semicolon = 61,
Colon = 62,
DoubleColon = 63,
TripleColon = 64,
Dot = 65,
Dollar = 66,
At = 67,
Question = 68,
Root = 69,
Assignment = 70,
BinaryExpression = 71,
UnaryExpression = 72,
LiteralExpression = 73,
IdentifierExpression = 74,
CallExpression = 75,
GroupingExpression = 76,
BlockExpression = 77,
IfExpression = 78,
WhileExpression = 79,
ForExpression = 80,
RepeatExpression = 81,
FunctionDefinition = 82,
IndexExpression = 83,
MemberExpression = 84,
ArgumentList = 85,
ParameterList = 86,
Error = 87,
Eof = 88,
}Variants§
Whitespace = 0
Newline = 1
Comment = 2
StringLiteral = 3
IntegerLiteral = 4
FloatLiteral = 5
BooleanLiteral = 6
NullLiteral = 7
Inf = 8
NaN = 9
NA = 10
NaInteger = 11
NaReal = 12
NaComplex = 13
NaCharacter = 14
Identifier = 15
If = 16
Else = 17
For = 18
In = 19
While = 20
Repeat = 21
Next = 22
Break = 23
Function = 24
Return = 25
True = 26
False = 27
Null = 28
Plus = 29
Minus = 30
Star = 31
Slash = 32
Percent = 33
Caret = 34
Equal = 35
EqualEqual = 36
NotEqual = 37
Less = 38
Greater = 39
LessEqual = 40
GreaterEqual = 41
And = 42
Or = 43
Not = 44
AndAnd = 45
OrOr = 46
Tilde = 47
LeftArrow = 48
RightArrow = 49
DoubleLeftArrow = 50
DoubleRightArrow = 51
Pipe = 52
Operator = 53
LeftParen = 54
RightParen = 55
LeftBracket = 56
RightBracket = 57
LeftBrace = 58
RightBrace = 59
Comma = 60
Semicolon = 61
Colon = 62
DoubleColon = 63
TripleColon = 64
Dot = 65
Dollar = 66
At = 67
Question = 68
Root = 69
Assignment = 70
BinaryExpression = 71
UnaryExpression = 72
LiteralExpression = 73
IdentifierExpression = 74
CallExpression = 75
GroupingExpression = 76
BlockExpression = 77
IfExpression = 78
WhileExpression = 79
ForExpression = 80
RepeatExpression = 81
FunctionDefinition = 82
IndexExpression = 83
MemberExpression = 84
ArgumentList = 85
ParameterList = 86
Error = 87
Eof = 88
Implementations§
Trait Implementations§
Source§impl Clone for RElementType
impl Clone for RElementType
Source§fn clone(&self) -> RElementType
fn clone(&self) -> RElementType
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 RElementType
impl Debug for RElementType
Source§impl<'de> Deserialize<'de> for RElementType
impl<'de> Deserialize<'de> for RElementType
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 RElementType
impl ElementType for RElementType
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<RTokenType> for RElementType
impl From<RTokenType> for RElementType
Source§fn from(token: RTokenType) -> Self
fn from(token: RTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for RElementType
impl Hash for RElementType
Source§impl PartialEq for RElementType
impl PartialEq for RElementType
Source§impl Serialize for RElementType
impl Serialize for RElementType
impl Copy for RElementType
impl Eq for RElementType
impl StructuralPartialEq for RElementType
Auto Trait Implementations§
impl Freeze for RElementType
impl RefUnwindSafe for RElementType
impl Send for RElementType
impl Sync for RElementType
impl Unpin for RElementType
impl UnwindSafe for RElementType
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