#[non_exhaustive]
#[repr(u16)]
pub enum SyntaxKind {
Show 139 variants BANG, L_PAREN, R_PAREN, L_CURLY, R_CURLY, L_BRACK, R_BRACK, COMMA, AT, DOLLAR, AMP, PIPE, SPREAD, EQ, COLON, query_KW, mutation_KW, repeatable_KW, subscription_KW, fragment_KW, on_KW, null_KW, extend_KW, schema_KW, scalar_KW, implements_KW, interface_KW, union_KW, enum_KW, input_KW, directive_KW, type_KW, true_KW, false_KW, QUERY_KW, MUTATION_KW, SUBSCRIPTION_KW, FIELD_KW, FRAGMENT_DEFINITION_KW, FRAGMENT_SPREAD_KW, INLINE_FRAGMENT_KW, VARIABLE_DEFINITION_KW, SCHEMA_KW, SCALAR_KW, OBJECT_KW, FIELD_DEFINITION_KW, ARGUMENT_DEFINITION_KW, INTERFACE_KW, UNION_KW, ENUM_KW, ENUM_VALUE_KW, INPUT_OBJECT_KW, INPUT_FIELD_DEFINITION_KW, INT, FLOAT, STRING, IDENT, WHITESPACE, COMMENT, ERROR, NAME, INTEGER_PART, NEGATIVE_SIGN, NON_ZERO_DIGIT, DIGIT, FRACTIONAL_PART, EXPONENT_PART, EXPONENT_INDICATOR, SIGN, DOCUMENT, DEFINITION, EXECUTABLE_DEFINITION, TYPE_SYSTEM_DEFINITION, TYPE_SYSTEM_EXTENSION, OPERATION_DEFINITION, FRAGMENT_DEFINITION, OPERATION_TYPE, DIRECTIVE, DIRECTIVES, SELECTION_SET, SELECTION, FIELD, FRAGMENT_SPREAD, INLINE_FRAGMENT, ALIAS, ARGUMENTS, ARGUMENT, VALUE, STRING_VALUE, INT_VALUE, FLOAT_VALUE, FRAGMENT_NAME, TYPE_CONDITION, VARIABLE, BOOLEAN_VALUE, NULL_VALUE, ENUM_VALUE, LIST_VALUE, OBJECT_VALUE, OBJECT_FIELD, VARIABLE_DEFINITIONS, VARIABLE_DEFINITION, TYPE, DEFAULT_VALUE, NAMED_TYPE, LIST_TYPE, NON_NULL_TYPE, SCHEMA_DEFINITION, TYPE_DEFINITION, DIRECTIVE_DEFINITION, SCHEMA_EXTENSION, TYPE_EXTENSION, ROOT_OPERATION_TYPE_DEFINITION, DESCRIPTION, SCALAR_TYPE_DEFINITION, OBJECT_TYPE_DEFINITION, INTERFACE_TYPE_DEFINITION, UNION_TYPE_DEFINITION, ENUM_TYPE_DEFINITION, INPUT_OBJECT_TYPE_DEFINITION, SCALAR_TYPE_EXTENSION, OBJECT_TYPE_EXTENSION, INTERFACE_TYPE_EXTENSION, UNION_TYPE_EXTENSION, ENUM_TYPE_EXTENSION, INPUT_OBJECT_TYPE_EXTENSION, IMPLEMENTS_INTERFACES, FIELDS_DEFINITION, FIELD_DEFINITION, ARGUMENTS_DEFINITION, UNION_MEMBER_TYPES, ENUM_VALUES_DEFINITION, ENUM_VALUE_DEFINITION, INPUT_FIELDS_DEFINITION, INPUT_VALUE_DEFINITION, DIRECTIVE_LOCATIONS, DIRECTIVE_LOCATION, EXECUTABLE_DIRECTIVE_LOCATION, TYPE_SYSTEM_DIRECTIVE_LOCATION,
}
Expand description

A token generated by the Parser.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

BANG

§

L_PAREN

§

R_PAREN

§

L_CURLY

§

R_CURLY

§

L_BRACK

§

R_BRACK

§

COMMA

§

AT

§

DOLLAR

§

AMP

§

PIPE

§

SPREAD

§

EQ

§

COLON

§

query_KW

§

mutation_KW

§

repeatable_KW

§

subscription_KW

§

fragment_KW

§

on_KW

§

null_KW

§

extend_KW

§

schema_KW

§

scalar_KW

§

implements_KW

§

interface_KW

§

union_KW

§

enum_KW

§

input_KW

§

directive_KW

§

type_KW

§

true_KW

§

false_KW

§

QUERY_KW

§

MUTATION_KW

§

SUBSCRIPTION_KW

§

FIELD_KW

§

FRAGMENT_DEFINITION_KW

§

FRAGMENT_SPREAD_KW

§

INLINE_FRAGMENT_KW

§

VARIABLE_DEFINITION_KW

§

SCHEMA_KW

§

SCALAR_KW

§

OBJECT_KW

§

FIELD_DEFINITION_KW

§

ARGUMENT_DEFINITION_KW

§

INTERFACE_KW

§

UNION_KW

§

ENUM_KW

§

ENUM_VALUE_KW

§

INPUT_OBJECT_KW

§

INPUT_FIELD_DEFINITION_KW

§

INT

§

FLOAT

§

STRING

§

IDENT

§

WHITESPACE

§

COMMENT

§

ERROR

§

NAME

§

INTEGER_PART

§

NEGATIVE_SIGN

§

NON_ZERO_DIGIT

§

DIGIT

§

FRACTIONAL_PART

§

EXPONENT_PART

§

EXPONENT_INDICATOR

§

SIGN

§

DOCUMENT

§

DEFINITION

§

EXECUTABLE_DEFINITION

§

TYPE_SYSTEM_DEFINITION

§

TYPE_SYSTEM_EXTENSION

§

OPERATION_DEFINITION

§

FRAGMENT_DEFINITION

§

OPERATION_TYPE

§

DIRECTIVE

§

DIRECTIVES

§

SELECTION_SET

§

SELECTION

§

FIELD

§

FRAGMENT_SPREAD

§

INLINE_FRAGMENT

§

ALIAS

§

ARGUMENTS

§

ARGUMENT

§

VALUE

§

STRING_VALUE

§

INT_VALUE

§

FLOAT_VALUE

§

FRAGMENT_NAME

§

TYPE_CONDITION

§

VARIABLE

§

BOOLEAN_VALUE

§

NULL_VALUE

§

ENUM_VALUE

§

LIST_VALUE

§

OBJECT_VALUE

§

OBJECT_FIELD

§

VARIABLE_DEFINITIONS

§

VARIABLE_DEFINITION

§

TYPE

§

DEFAULT_VALUE

§

NAMED_TYPE

§

LIST_TYPE

§

NON_NULL_TYPE

§

SCHEMA_DEFINITION

§

TYPE_DEFINITION

§

DIRECTIVE_DEFINITION

§

SCHEMA_EXTENSION

§

TYPE_EXTENSION

§

ROOT_OPERATION_TYPE_DEFINITION

§

DESCRIPTION

§

SCALAR_TYPE_DEFINITION

§

OBJECT_TYPE_DEFINITION

§

INTERFACE_TYPE_DEFINITION

§

UNION_TYPE_DEFINITION

§

ENUM_TYPE_DEFINITION

§

INPUT_OBJECT_TYPE_DEFINITION

§

SCALAR_TYPE_EXTENSION

§

OBJECT_TYPE_EXTENSION

§

INTERFACE_TYPE_EXTENSION

§

UNION_TYPE_EXTENSION

§

ENUM_TYPE_EXTENSION

§

INPUT_OBJECT_TYPE_EXTENSION

§

IMPLEMENTS_INTERFACES

§

FIELDS_DEFINITION

§

FIELD_DEFINITION

§

ARGUMENTS_DEFINITION

§

UNION_MEMBER_TYPES

§

ENUM_VALUES_DEFINITION

§

ENUM_VALUE_DEFINITION

§

INPUT_FIELDS_DEFINITION

§

INPUT_VALUE_DEFINITION

§

DIRECTIVE_LOCATIONS

§

DIRECTIVE_LOCATION

§

EXECUTABLE_DIRECTIVE_LOCATION

§

TYPE_SYSTEM_DIRECTIVE_LOCATION

Implementations§

Trait Implementations§

source§

impl Clone for SyntaxKind

source§

fn clone(&self) -> SyntaxKind

Returns a copy 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 SyntaxKind

source§

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

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

impl From<SyntaxKind> for u16

source§

fn from(k: SyntaxKind) -> u16

Converts to this type from the input type.
source§

impl From<u16> for SyntaxKind

source§

fn from(d: u16) -> SyntaxKind

Converts to this type from the input type.
source§

impl Hash for SyntaxKind

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 Ord for SyntaxKind

source§

fn cmp(&self, other: &SyntaxKind) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for SyntaxKind

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for SyntaxKind

source§

fn partial_cmp(&self, other: &SyntaxKind) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for SyntaxKind

source§

impl Eq for SyntaxKind

source§

impl StructuralPartialEq for SyntaxKind

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. 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,

§

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>,

§

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>,

§

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.