ElixirSyntaxKind

Enum ElixirSyntaxKind 

Source
pub enum ElixirSyntaxKind {
Show 173 variants Whitespace, Newline, Comment, Identifier, Atom, Variable, Number, Float, String, Character, Sigil, After, And, Case, Catch, Cond, Def, Defp, Defmodule, Defstruct, Defprotocol, Defimpl, Defmacro, Defmacrop, Do, Else, Elsif, End, False, Fn, If, In, Not, Or, Receive, Rescue, True, Try, Unless, When, With, Plus, Minus, Star, Slash, Equal, EqualEqual, NotEqual, EqualEqualEqual, NotEqualEqual, Less, Greater, LessEqual, GreaterEqual, PlusPlus, MinusMinus, StarStar, Exclamation, Question, Ampersand, At, Caret, Tilde, LeftShift, RightShift, MatchOp, PipeRight, LeftParen, RightParen, LeftBrace, RightBrace, LeftBracket, RightBracket, Comma, Semicolon, Dot, Colon, Arrow, Pipe, PipePipe, Hash, Error, Eof, SourceFile, Module, Function, ParameterList, Parameter, BlockExpression, LetStatement, ExpressionStatement, IdentifierExpression, LiteralExpression, BooleanLiteral, ParenthesizedExpression, BinaryExpression, UnaryExpression, CallExpression, FieldExpression, IndexExpression, IfExpression, MatchExpression, LoopExpression, WhileExpression, ForExpression, BreakExpression, ContinueExpression, ReturnExpression, StructExpression, TupleExpression, ArrayExpression, RangeExpression, ClosureExpression, AsyncBlockExpression, UnsafeBlockExpression, TryExpression, AwaitExpression, MacroCall, Path, PathSegment, GenericArgs, TypePath, TupleType, ArrayType, SliceType, ReferenceType, PointerType, FunctionType, TraitObjectType, ImplTraitType, InferredType, NeverType, Pattern, IdentifierPattern, WildcardPattern, TuplePattern, StructPattern, TupleStructPattern, SlicePattern, ReferencePattern, LiteralPattern, RangePattern, OrPattern, RestPattern, StructDeclaration, EnumDeclaration, UnionDeclaration, TraitDeclaration, ImplDeclaration, ModuleDeclaration, UseDeclaration, ConstDeclaration, StaticDeclaration, TypeAliasDeclaration, ExternBlock, ExternFunction, Attribute, Visibility, GenericParams, GenericParam, TypeParam, ConstParam, LifetimeParam, WhereClause, WherePredicate, ReturnType, FieldList, Field, Variant, VariantList, AssociatedItem, TraitItem, ImplItem,
}
Expand description

Represents all possible syntax kinds in the Elixir programming language.

Variants§

§

Whitespace

Whitespace characters (spaces, tabs)

§

Newline

Newline character

§

Comment

Comment

§

Identifier

Identifier (variable names, function names, etc.)

§

Atom

Atom literal

§

Variable

Variable name

§

Number

Number literal

§

Float

Float literal

§

String

String literal

§

Character

Character literal

§

Sigil

Sigil literal

§

After

after keyword

§

And

and keyword

§

Case

case keyword

§

Catch

catch keyword

§

Cond

cond keyword

§

Def

def keyword

§

Defp

defp keyword (private function)

§

Defmodule

defmodule keyword

§

Defstruct

defstruct keyword

§

Defprotocol

defprotocol keyword

§

Defimpl

defimpl keyword

§

Defmacro

defmacro keyword

§

Defmacrop

defmacrop keyword (private macro)

§

Do

do keyword

§

Else

else keyword

§

Elsif

elsif keyword

§

End

end keyword

§

False

false keyword

§

Fn

fn keyword

§

If

if keyword

§

In

in keyword

§

Not

not keyword

§

Or

or keyword

§

Receive

receive keyword

§

Rescue

rescue keyword

§

True

true keyword

§

Try

try keyword

§

Unless

unless keyword

§

When

when keyword

§

With

with keyword

§

Plus

plus operator (+)

§

Minus

minus operator (-)

§

Star

multiplication operator (*)

§

Slash

division operator (/)

§

Equal

assignment operator (=)

§

EqualEqual

equality operator (==)

§

NotEqual

inequality operator (!=)

§

EqualEqualEqual

strict equality operator (===)

§

NotEqualEqual

strict inequality operator (!==)

§

Less

less than operator (<)

§

Greater

greater than operator (>)

§

LessEqual

less than or equal operator (<=)

§

GreaterEqual

greater than or equal operator (>=)

§

PlusPlus

concatenation operator (++)

§

MinusMinus

subtraction operator (–)

§

StarStar

exponentiation operator (**)

§

Exclamation

exclamation mark (!)

§

Question

question mark (?)

§

Ampersand

ampersand (&)

§

At

at symbol (@)

§

Caret

caret (^)

§

Tilde

tilde (~)

§

LeftShift

left shift operator (<<)

§

RightShift

right shift operator (>>)

§

MatchOp

match operator (=~)

§

PipeRight

pipe right operator (|>)

§

LeftParen

§

RightParen

§

LeftBrace

§

RightBrace

§

LeftBracket

§

RightBracket

§

Comma

§

Semicolon

§

Dot

§

Colon

§

Arrow

§

Pipe

§

PipePipe

§

Hash

§

Error

§

Eof

§

SourceFile

§

Module

§

Function

§

ParameterList

§

Parameter

§

BlockExpression

§

LetStatement

§

ExpressionStatement

§

IdentifierExpression

§

LiteralExpression

§

BooleanLiteral

§

ParenthesizedExpression

§

BinaryExpression

§

UnaryExpression

§

CallExpression

§

FieldExpression

§

IndexExpression

§

IfExpression

§

MatchExpression

§

LoopExpression

§

WhileExpression

§

ForExpression

§

BreakExpression

§

ContinueExpression

§

ReturnExpression

§

StructExpression

§

TupleExpression

§

ArrayExpression

§

RangeExpression

§

ClosureExpression

§

AsyncBlockExpression

§

UnsafeBlockExpression

§

TryExpression

§

AwaitExpression

§

MacroCall

§

Path

§

PathSegment

§

GenericArgs

§

TypePath

§

TupleType

§

ArrayType

§

SliceType

§

ReferenceType

§

PointerType

§

FunctionType

§

TraitObjectType

§

ImplTraitType

§

InferredType

§

NeverType

§

Pattern

§

IdentifierPattern

§

WildcardPattern

§

TuplePattern

§

StructPattern

§

TupleStructPattern

§

SlicePattern

§

ReferencePattern

§

LiteralPattern

§

RangePattern

§

OrPattern

§

RestPattern

§

StructDeclaration

§

EnumDeclaration

§

UnionDeclaration

§

TraitDeclaration

§

ImplDeclaration

§

ModuleDeclaration

§

UseDeclaration

§

ConstDeclaration

§

StaticDeclaration

§

TypeAliasDeclaration

§

ExternBlock

§

ExternFunction

§

Attribute

§

Visibility

§

GenericParams

§

GenericParam

§

TypeParam

§

ConstParam

§

LifetimeParam

§

WhereClause

§

WherePredicate

§

ReturnType

§

FieldList

§

Field

§

Variant

§

VariantList

§

AssociatedItem

§

TraitItem

§

ImplItem

Implementations§

Trait Implementations§

Source§

impl Clone for ElixirSyntaxKind

Source§

fn clone(&self) -> ElixirSyntaxKind

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ElixirSyntaxKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ElixirSyntaxKind

Source§

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 Hash for ElixirSyntaxKind

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ElixirSyntaxKind

Source§

fn eq(&self, other: &ElixirSyntaxKind) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ElixirSyntaxKind

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl SyntaxKind for ElixirSyntaxKind

Source§

fn is_trivia(&self) -> bool

Returns true if this kind represents trivia (whitespace, comments, etc.). Read more
Source§

fn is_comment(&self) -> bool

Returns true if this kind represents a comment. Read more
Source§

fn is_whitespace(&self) -> bool

Returns true if this kind represents whitespace.
Source§

fn is_token_type(&self) -> bool

Returns true if this kind represents a token type. Read more
Source§

fn is_element_type(&self) -> bool

Returns true if this kind represents an element type. Read more
Source§

impl Copy for ElixirSyntaxKind

Source§

impl Eq for ElixirSyntaxKind

Source§

impl StructuralPartialEq for ElixirSyntaxKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,