#[repr(u16)]pub enum ElixirElementType {
Show 76 variants
Root = 0,
Whitespace = 1,
Newline = 2,
Comment = 3,
Identifier = 4,
Atom = 5,
Variable = 6,
Number = 7,
Float = 8,
String = 9,
Character = 10,
Sigil = 11,
After = 12,
And = 13,
Case = 14,
Catch = 15,
Cond = 16,
Def = 17,
Defp = 18,
Defmodule = 19,
Defstruct = 20,
Defprotocol = 21,
Defimpl = 22,
Defmacro = 23,
Defmacrop = 24,
Do = 25,
Else = 26,
Elsif = 27,
End = 28,
False = 29,
Fn = 30,
If = 31,
In = 32,
Not = 33,
Or = 34,
Receive = 35,
Rescue = 36,
True = 37,
Try = 38,
Unless = 39,
When = 40,
With = 41,
Plus = 42,
Minus = 43,
Mul = 44,
Div = 45,
Dot = 46,
Comma = 47,
Semicolon = 48,
Colon = 49,
LeftParen = 50,
RightParen = 51,
LeftBrace = 52,
RightBrace = 53,
LeftBracket = 54,
RightBracket = 55,
Arrow = 56,
Pipe = 57,
ModuleDefinition = 58,
FunctionDefinition = 59,
CallExpression = 60,
BinaryExpression = 61,
UnaryExpression = 62,
LiteralExpression = 63,
IdentifierExpression = 64,
AttributeExpression = 65,
AccessExpression = 66,
ListLiteral = 67,
TupleLiteral = 68,
MapLiteral = 69,
KeywordLiteral = 70,
BlockExpression = 71,
MatchExpression = 72,
At = 73,
Percent = 74,
Error = 75,
}Variants§
Root = 0
Whitespace = 1
Newline = 2
Comment = 3
Identifier = 4
Atom = 5
Variable = 6
Number = 7
Float = 8
String = 9
Character = 10
Sigil = 11
After = 12
And = 13
Case = 14
Catch = 15
Cond = 16
Def = 17
Defp = 18
Defmodule = 19
Defstruct = 20
Defprotocol = 21
Defimpl = 22
Defmacro = 23
Defmacrop = 24
Do = 25
Else = 26
Elsif = 27
End = 28
False = 29
Fn = 30
If = 31
In = 32
Not = 33
Or = 34
Receive = 35
Rescue = 36
True = 37
Try = 38
Unless = 39
When = 40
With = 41
Plus = 42
Minus = 43
Mul = 44
Div = 45
Dot = 46
Comma = 47
Semicolon = 48
Colon = 49
LeftParen = 50
RightParen = 51
LeftBrace = 52
RightBrace = 53
LeftBracket = 54
RightBracket = 55
Arrow = 56
Pipe = 57
ModuleDefinition = 58
FunctionDefinition = 59
CallExpression = 60
BinaryExpression = 61
UnaryExpression = 62
LiteralExpression = 63
IdentifierExpression = 64
AttributeExpression = 65
AccessExpression = 66
ListLiteral = 67
TupleLiteral = 68
MapLiteral = 69
KeywordLiteral = 70
BlockExpression = 71
MatchExpression = 72
At = 73
Percent = 74
Error = 75
Trait Implementations§
Source§impl Clone for ElixirElementType
impl Clone for ElixirElementType
Source§fn clone(&self) -> ElixirElementType
fn clone(&self) -> ElixirElementType
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 ElixirElementType
impl Debug for ElixirElementType
Source§impl<'de> Deserialize<'de> for ElixirElementType
impl<'de> Deserialize<'de> for ElixirElementType
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 ElixirElementType
impl ElementType for ElixirElementType
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<ElixirTokenType> for ElixirElementType
impl From<ElixirTokenType> for ElixirElementType
Source§fn from(t: ElixirTokenType) -> Self
fn from(t: ElixirTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for ElixirElementType
impl Hash for ElixirElementType
Source§impl PartialEq for ElixirElementType
impl PartialEq for ElixirElementType
Source§impl Serialize for ElixirElementType
impl Serialize for ElixirElementType
impl Copy for ElixirElementType
impl Eq for ElixirElementType
impl StructuralPartialEq for ElixirElementType
Auto Trait Implementations§
impl Freeze for ElixirElementType
impl RefUnwindSafe for ElixirElementType
impl Send for ElixirElementType
impl Sync for ElixirElementType
impl Unpin for ElixirElementType
impl UnwindSafe for ElixirElementType
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