Skip to main content

SyntaxKind

Enum SyntaxKind 

Source
#[repr(u32)]
pub enum SyntaxKind {
Show 323 variants Whitespace = 0, LineComment = 1, BlockComment = 2, Ident = 3, Hash = 4, String = 5, BadString = 6, Url = 7, BadUrl = 8, Number = 9, Percentage = 10, Dimension = 11, UnicodeRange = 12, AtKeyword = 13, Delim = 14, Important = 15, Dot = 16, Comma = 17, Colon = 18, Semicolon = 19, LeftBrace = 20, RightBrace = 21, LeftParen = 22, RightParen = 23, LeftBracket = 24, RightBracket = 25, Plus = 26, Minus = 27, Star = 28, Slash = 29, Percent = 30, Equals = 31, Tilde = 32, Pipe = 33, Caret = 34, Dollar = 35, Ampersand = 36, GreaterThan = 37, LessThan = 38, PlusEquals = 39, MinusEquals = 40, StarEquals = 41, SlashEquals = 42, PipeEquals = 43, TildeEquals = 44, CaretEquals = 45, DollarEquals = 46, DoubleColon = 47, DoublePipe = 48, DoubleAmpersand = 49, Arrow = 50, IncludesMatch = 51, DashMatch = 52, PrefixMatch = 53, SuffixMatch = 54, SubstringMatch = 55, ColumnCombinator = 56, NestingSelector = 57, CustomPropertyName = 58, ClassName = 59, IdName = 60, KeywordAnd = 61, KeywordOr = 62, KeywordNot = 63, KeywordOnly = 64, KeywordFrom = 65, KeywordTo = 66, KeywordThrough = 67, KeywordImportant = 68, KeywordGlobal = 69, KeywordLocal = 70, KeywordExport = 71, KeywordImport = 72, KeywordComposes = 73, KeywordAs = 74, KeywordWith = 75, KeywordLayer = 76, KeywordSupports = 77, KeywordContainer = 78, KeywordScope = 79, KeywordMedia = 80, KeywordKeyframes = 81, KeywordCharset = 82, KeywordNamespace = 83, KeywordPage = 84, KeywordFontFace = 85, KeywordProperty = 86, KeywordStartingStyle = 87, KeywordWhen = 88, KeywordElse = 89, KeywordUse = 90, KeywordForward = 91, KeywordMixin = 92, KeywordInclude = 93, KeywordFunction = 94, KeywordReturn = 95, KeywordIf = 96, KeywordEach = 97, KeywordFor = 98, KeywordWhile = 99, KeywordIn = 100, Cdo = 101, Cdc = 102, ScssVariable = 1_024, ScssInterpolationStart = 1_025, ScssInterpolationEnd = 1_026, ScssSilentComment = 1_027, ScssPlaceholder = 1_028, ScssModuleNamespace = 1_029, SassIndentedNewline = 1_030, SassIndent = 1_031, SassDedent = 1_032, SassOptionalSemicolon = 1_033, LessVariable = 1_040, LessEscapedString = 1_041, LessDetachedRuleset = 1_042, LessMixinGuardWhen = 1_043, LessExtendKeyword = 1_044, LessNamespaceSeparator = 1_045, LessInterpolationStart = 1_046, LessInterpolationEnd = 1_047, LessPropertyVariableToken = 1_048, Stylesheet = 4_096, Rule = 4_097, QualifiedRule = 4_098, Declaration = 4_099, DeclarationList = 4_100, RuleList = 4_101, SelectorList = 4_102, Selector = 4_103, ComplexSelector = 4_104, CompoundSelector = 4_105, ClassSelector = 4_106, IdSelector = 4_107, TypeSelector = 4_108, UniversalSelector = 4_109, AttributeSelector = 4_110, AttributeMatcher = 4_111, PseudoClassSelector = 4_112, PseudoElementSelector = 4_113, PseudoSelectorArgument = 4_114, NestingSelectorNode = 4_115, Combinator = 4_116, SelectorValue = 4_117, PropertyName = 4_118, CustomPropertyDeclaration = 4_119, Value = 4_120, ValueList = 4_121, FunctionCall = 4_122, FunctionArguments = 4_123, BinaryExpression = 4_124, UnaryExpression = 4_125, ParenthesizedExpression = 4_126, Interpolation = 4_127, DimensionValue = 4_128, ColorValue = 4_129, UrlValue = 4_130, VarFunction = 4_131, CalcFunction = 4_132, AtRule = 4_133, MediaRule = 4_134, SupportsRule = 4_135, ContainerRule = 4_136, LayerRule = 4_137, ScopeRule = 4_138, KeyframesRule = 4_139, KeyframeBlock = 4_140, FontFaceRule = 4_141, PageRule = 4_142, NamespaceRule = 4_143, ImportRule = 4_144, CharsetRule = 4_145, PropertyRule = 4_146, StartingStyleRule = 4_147, MediaQueryList = 4_148, MediaQuery = 4_149, MediaFeature = 4_150, SupportsCondition = 4_151, ContainerCondition = 4_152, LayerName = 4_153, ScopeRange = 4_154, CssModuleLocalBlock = 4_155, CssModuleGlobalBlock = 4_156, CssModuleExportBlock = 4_157, CssModuleImportBlock = 4_158, CssModuleComposesDeclaration = 4_159, CssModuleComposesTarget = 4_160, CssModuleFromClause = 4_161, TokenDefinition = 4_162, TokenReference = 4_163, Comment = 4_164, ErrorNode = 4_165, EnvFunction = 4_166, AttrFunction = 4_167, MathFunction = 4_168, PageMarginRule = 4_169, WhenRule = 4_170, ElseRule = 4_171, CounterStyleRule = 4_172, FontPaletteValuesRule = 4_173, ColorProfileRule = 4_174, PositionTryRule = 4_175, FontFeatureValuesRule = 4_176, FontFeatureValuesStylisticRule = 4_177, FontFeatureValuesStylesetRule = 4_178, FontFeatureValuesCharacterVariantRule = 4_179, FontFeatureValuesSwashRule = 4_180, FontFeatureValuesOrnamentsRule = 4_181, FontFeatureValuesAnnotationRule = 4_182, FontFeatureValuesHistoricalFormsRule = 4_183, ViewTransitionRule = 4_184, GradientFunction = 4_185, TransformFunction = 4_186, FilterFunction = 4_187, ImageFunction = 4_188, ShapeFunction = 4_189, AtRulePrelude = 4_190, NestRule = 4_191, CustomMediaRule = 4_192, IdentifierValue = 4_193, StringValue = 4_194, UnicodeRangeValue = 4_195, NumberValue = 4_196, PercentageValue = 4_197, BracketedValue = 4_198, ImportantAnnotation = 4_199, ComponentValue = 4_200, SimpleBlock = 4_201, ComponentValueList = 4_202, CommaSeparatedComponentValueList = 4_203, CustomPropertyValue = 4_204, AttributeName = 4_205, AttributeValue = 4_206, AttributeModifier = 4_207, NthSelectorArgument = 4_208, NthSelectorFormula = 4_209, NthSelectorOfSelectorList = 4_210, RelativeSelectorList = 4_211, RelativeSelector = 4_212, LanguageSelectorArgument = 4_213, LanguageTag = 4_214, DirectionalitySelectorArgument = 4_215, NamespacePrefix = 4_216, ScssStylesheet = 5_120, ScssUseRule = 5_121, ScssForwardRule = 5_122, ScssMixinDeclaration = 5_123, ScssIncludeRule = 5_124, ScssFunctionDeclaration = 5_125, ScssReturnRule = 5_126, ScssVariableDeclaration = 5_127, ScssVariableReference = 5_128, ScssPlaceholderSelector = 5_129, ScssExtendRule = 5_130, ScssControlIf = 5_131, ScssControlElse = 5_132, ScssControlEach = 5_133, ScssControlFor = 5_134, ScssControlWhile = 5_135, ScssNestedProperty = 5_136, ScssModuleConfig = 5_137, SassIndentedBlock = 5_138, SassIndentedRule = 5_139, ScssAtRootRule = 5_140, ScssErrorRule = 5_141, ScssWarnRule = 5_142, ScssDebugRule = 5_143, ScssContentRule = 5_144, ScssVariableFlag = 5_145, LessStylesheet = 5_152, LessVariableDeclaration = 5_153, LessVariableReference = 5_154, LessMixinDeclaration = 5_155, LessMixinCall = 5_156, LessMixinGuard = 5_157, LessDetachedRulesetNode = 5_158, LessExtendRule = 5_159, LessNamespaceAccess = 5_160, LessPropertyVariable = 5_161, BogusToken = 8_192, BogusTrivia = 8_193, BogusRule = 8_194, BogusSelector = 8_195, BogusSelectorList = 8_196, BogusCompoundSelector = 8_197, BogusCombinator = 8_198, BogusDeclaration = 8_199, BogusDeclarationList = 8_200, BogusPropertyName = 8_201, BogusValue = 8_202, BogusValueList = 8_203, BogusFunctionCall = 8_204, BogusFunctionArguments = 8_205, BogusAtRule = 8_206, BogusMediaQuery = 8_207, BogusSupportsCondition = 8_208, BogusContainerCondition = 8_209, BogusLayerName = 8_210, BogusScopeRange = 8_211, BogusKeyframeBlock = 8_212, BogusCssModuleBlock = 8_213, BogusComposesDeclaration = 8_214, BogusComposesTarget = 8_215, BogusFromClause = 8_216, BogusInterpolation = 8_217, BogusScssVariable = 8_218, BogusScssMixin = 8_219, BogusScssFunction = 8_220, BogusScssControl = 8_221, BogusSassIndentation = 8_222, BogusLessVariable = 8_223, BogusLessMixin = 8_224, BogusLessGuard = 8_225, BogusLessDetachedRuleset = 8_226, BogusRecovery = 8_227, BogusScssModuleConfig = 8_228, BogusAtRulePrelude = 8_229, BogusBracketedValue = 8_230, BogusSimpleBlock = 8_231, Root = 8_448, Eof = 8_449, Unknown = 8_702, Tombstone = 8_703,
}

Variants§

§

Whitespace = 0

§

LineComment = 1

§

BlockComment = 2

§

Ident = 3

§

Hash = 4

§

String = 5

§

BadString = 6

§

Url = 7

§

BadUrl = 8

§

Number = 9

§

Percentage = 10

§

Dimension = 11

§

UnicodeRange = 12

§

AtKeyword = 13

§

Delim = 14

§

Important = 15

§

Dot = 16

§

Comma = 17

§

Colon = 18

§

Semicolon = 19

§

LeftBrace = 20

§

RightBrace = 21

§

LeftParen = 22

§

RightParen = 23

§

LeftBracket = 24

§

RightBracket = 25

§

Plus = 26

§

Minus = 27

§

Star = 28

§

Slash = 29

§

Percent = 30

§

Equals = 31

§

Tilde = 32

§

Pipe = 33

§

Caret = 34

§

Dollar = 35

§

Ampersand = 36

§

GreaterThan = 37

§

LessThan = 38

§

PlusEquals = 39

§

MinusEquals = 40

§

StarEquals = 41

§

SlashEquals = 42

§

PipeEquals = 43

§

TildeEquals = 44

§

CaretEquals = 45

§

DollarEquals = 46

§

DoubleColon = 47

§

DoublePipe = 48

§

DoubleAmpersand = 49

§

Arrow = 50

§

IncludesMatch = 51

§

DashMatch = 52

§

PrefixMatch = 53

§

SuffixMatch = 54

§

SubstringMatch = 55

§

ColumnCombinator = 56

§

NestingSelector = 57

§

CustomPropertyName = 58

§

ClassName = 59

§

IdName = 60

§

KeywordAnd = 61

§

KeywordOr = 62

§

KeywordNot = 63

§

KeywordOnly = 64

§

KeywordFrom = 65

§

KeywordTo = 66

§

KeywordThrough = 67

§

KeywordImportant = 68

§

KeywordGlobal = 69

§

KeywordLocal = 70

§

KeywordExport = 71

§

KeywordImport = 72

§

KeywordComposes = 73

§

KeywordAs = 74

§

KeywordWith = 75

§

KeywordLayer = 76

§

KeywordSupports = 77

§

KeywordContainer = 78

§

KeywordScope = 79

§

KeywordMedia = 80

§

KeywordKeyframes = 81

§

KeywordCharset = 82

§

KeywordNamespace = 83

§

KeywordPage = 84

§

KeywordFontFace = 85

§

KeywordProperty = 86

§

KeywordStartingStyle = 87

§

KeywordWhen = 88

§

KeywordElse = 89

§

KeywordUse = 90

§

KeywordForward = 91

§

KeywordMixin = 92

§

KeywordInclude = 93

§

KeywordFunction = 94

§

KeywordReturn = 95

§

KeywordIf = 96

§

KeywordEach = 97

§

KeywordFor = 98

§

KeywordWhile = 99

§

KeywordIn = 100

§

Cdo = 101

§

Cdc = 102

§

ScssVariable = 1_024

§

ScssInterpolationStart = 1_025

§

ScssInterpolationEnd = 1_026

§

ScssSilentComment = 1_027

§

ScssPlaceholder = 1_028

§

ScssModuleNamespace = 1_029

§

SassIndentedNewline = 1_030

§

SassIndent = 1_031

§

SassDedent = 1_032

§

SassOptionalSemicolon = 1_033

§

LessVariable = 1_040

§

LessEscapedString = 1_041

§

LessDetachedRuleset = 1_042

§

LessMixinGuardWhen = 1_043

§

LessExtendKeyword = 1_044

§

LessNamespaceSeparator = 1_045

§

LessInterpolationStart = 1_046

§

LessInterpolationEnd = 1_047

§

LessPropertyVariableToken = 1_048

§

Stylesheet = 4_096

§

Rule = 4_097

§

QualifiedRule = 4_098

§

Declaration = 4_099

§

DeclarationList = 4_100

§

RuleList = 4_101

§

SelectorList = 4_102

§

Selector = 4_103

§

ComplexSelector = 4_104

§

CompoundSelector = 4_105

§

ClassSelector = 4_106

§

IdSelector = 4_107

§

TypeSelector = 4_108

§

UniversalSelector = 4_109

§

AttributeSelector = 4_110

§

AttributeMatcher = 4_111

§

PseudoClassSelector = 4_112

§

PseudoElementSelector = 4_113

§

PseudoSelectorArgument = 4_114

§

NestingSelectorNode = 4_115

§

Combinator = 4_116

§

SelectorValue = 4_117

§

PropertyName = 4_118

§

CustomPropertyDeclaration = 4_119

§

Value = 4_120

§

ValueList = 4_121

§

FunctionCall = 4_122

§

FunctionArguments = 4_123

§

BinaryExpression = 4_124

§

UnaryExpression = 4_125

§

ParenthesizedExpression = 4_126

§

Interpolation = 4_127

§

DimensionValue = 4_128

§

ColorValue = 4_129

§

UrlValue = 4_130

§

VarFunction = 4_131

§

CalcFunction = 4_132

§

AtRule = 4_133

§

MediaRule = 4_134

§

SupportsRule = 4_135

§

ContainerRule = 4_136

§

LayerRule = 4_137

§

ScopeRule = 4_138

§

KeyframesRule = 4_139

§

KeyframeBlock = 4_140

§

FontFaceRule = 4_141

§

PageRule = 4_142

§

NamespaceRule = 4_143

§

ImportRule = 4_144

§

CharsetRule = 4_145

§

PropertyRule = 4_146

§

StartingStyleRule = 4_147

§

MediaQueryList = 4_148

§

MediaQuery = 4_149

§

MediaFeature = 4_150

§

SupportsCondition = 4_151

§

ContainerCondition = 4_152

§

LayerName = 4_153

§

ScopeRange = 4_154

§

CssModuleLocalBlock = 4_155

§

CssModuleGlobalBlock = 4_156

§

CssModuleExportBlock = 4_157

§

CssModuleImportBlock = 4_158

§

CssModuleComposesDeclaration = 4_159

§

CssModuleComposesTarget = 4_160

§

CssModuleFromClause = 4_161

§

TokenDefinition = 4_162

§

TokenReference = 4_163

§

Comment = 4_164

§

ErrorNode = 4_165

§

EnvFunction = 4_166

§

AttrFunction = 4_167

§

MathFunction = 4_168

§

PageMarginRule = 4_169

§

WhenRule = 4_170

§

ElseRule = 4_171

§

CounterStyleRule = 4_172

§

FontPaletteValuesRule = 4_173

§

ColorProfileRule = 4_174

§

PositionTryRule = 4_175

§

FontFeatureValuesRule = 4_176

§

FontFeatureValuesStylisticRule = 4_177

§

FontFeatureValuesStylesetRule = 4_178

§

FontFeatureValuesCharacterVariantRule = 4_179

§

FontFeatureValuesSwashRule = 4_180

§

FontFeatureValuesOrnamentsRule = 4_181

§

FontFeatureValuesAnnotationRule = 4_182

§

FontFeatureValuesHistoricalFormsRule = 4_183

§

ViewTransitionRule = 4_184

§

GradientFunction = 4_185

§

TransformFunction = 4_186

§

FilterFunction = 4_187

§

ImageFunction = 4_188

§

ShapeFunction = 4_189

§

AtRulePrelude = 4_190

§

NestRule = 4_191

§

CustomMediaRule = 4_192

§

IdentifierValue = 4_193

§

StringValue = 4_194

§

UnicodeRangeValue = 4_195

§

NumberValue = 4_196

§

PercentageValue = 4_197

§

BracketedValue = 4_198

§

ImportantAnnotation = 4_199

§

ComponentValue = 4_200

§

SimpleBlock = 4_201

§

ComponentValueList = 4_202

§

CommaSeparatedComponentValueList = 4_203

§

CustomPropertyValue = 4_204

§

AttributeName = 4_205

§

AttributeValue = 4_206

§

AttributeModifier = 4_207

§

NthSelectorArgument = 4_208

§

NthSelectorFormula = 4_209

§

NthSelectorOfSelectorList = 4_210

§

RelativeSelectorList = 4_211

§

RelativeSelector = 4_212

§

LanguageSelectorArgument = 4_213

§

LanguageTag = 4_214

§

DirectionalitySelectorArgument = 4_215

§

NamespacePrefix = 4_216

§

ScssStylesheet = 5_120

§

ScssUseRule = 5_121

§

ScssForwardRule = 5_122

§

ScssMixinDeclaration = 5_123

§

ScssIncludeRule = 5_124

§

ScssFunctionDeclaration = 5_125

§

ScssReturnRule = 5_126

§

ScssVariableDeclaration = 5_127

§

ScssVariableReference = 5_128

§

ScssPlaceholderSelector = 5_129

§

ScssExtendRule = 5_130

§

ScssControlIf = 5_131

§

ScssControlElse = 5_132

§

ScssControlEach = 5_133

§

ScssControlFor = 5_134

§

ScssControlWhile = 5_135

§

ScssNestedProperty = 5_136

§

ScssModuleConfig = 5_137

§

SassIndentedBlock = 5_138

§

SassIndentedRule = 5_139

§

ScssAtRootRule = 5_140

§

ScssErrorRule = 5_141

§

ScssWarnRule = 5_142

§

ScssDebugRule = 5_143

§

ScssContentRule = 5_144

§

ScssVariableFlag = 5_145

§

LessStylesheet = 5_152

§

LessVariableDeclaration = 5_153

§

LessVariableReference = 5_154

§

LessMixinDeclaration = 5_155

§

LessMixinCall = 5_156

§

LessMixinGuard = 5_157

§

LessDetachedRulesetNode = 5_158

§

LessExtendRule = 5_159

§

LessNamespaceAccess = 5_160

§

LessPropertyVariable = 5_161

§

BogusToken = 8_192

§

BogusTrivia = 8_193

§

BogusRule = 8_194

§

BogusSelector = 8_195

§

BogusSelectorList = 8_196

§

BogusCompoundSelector = 8_197

§

BogusCombinator = 8_198

§

BogusDeclaration = 8_199

§

BogusDeclarationList = 8_200

§

BogusPropertyName = 8_201

§

BogusValue = 8_202

§

BogusValueList = 8_203

§

BogusFunctionCall = 8_204

§

BogusFunctionArguments = 8_205

§

BogusAtRule = 8_206

§

BogusMediaQuery = 8_207

§

BogusSupportsCondition = 8_208

§

BogusContainerCondition = 8_209

§

BogusLayerName = 8_210

§

BogusScopeRange = 8_211

§

BogusKeyframeBlock = 8_212

§

BogusCssModuleBlock = 8_213

§

BogusComposesDeclaration = 8_214

§

BogusComposesTarget = 8_215

§

BogusFromClause = 8_216

§

BogusInterpolation = 8_217

§

BogusScssVariable = 8_218

§

BogusScssMixin = 8_219

§

BogusScssFunction = 8_220

§

BogusScssControl = 8_221

§

BogusSassIndentation = 8_222

§

BogusLessVariable = 8_223

§

BogusLessMixin = 8_224

§

BogusLessGuard = 8_225

§

BogusLessDetachedRuleset = 8_226

§

BogusRecovery = 8_227

§

BogusScssModuleConfig = 8_228

§

BogusAtRulePrelude = 8_229

§

BogusBracketedValue = 8_230

§

BogusSimpleBlock = 8_231

§

Root = 8_448

§

Eof = 8_449

§

Unknown = 8_702

§

Tombstone = 8_703

Implementations§

Source§

impl SyntaxKind

Source

pub const ALL: &'static [Self]

Source

pub const fn as_u32(self) -> u32

Source

pub fn from_raw_kind(raw: u32) -> Option<Self>

Source

pub const fn is_token(self) -> bool

Source

pub const fn is_node(self) -> bool

Source

pub const fn is_bogus(self) -> bool

Source

pub const fn is_marker(self) -> bool

Source

pub const fn is_dialect_specific(self) -> bool

Source

pub const fn is_dialect(self) -> bool

Source

pub const fn is_trivia(self) -> bool

Trait Implementations§

Source§

impl Clone for SyntaxKind

Source§

fn clone(&self) -> SyntaxKind

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for SyntaxKind

Source§

impl Debug for SyntaxKind

Source§

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

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

impl Eq for SyntaxKind

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 (const: unstable) · Source§

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

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

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

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

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

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

impl PartialEq for SyntaxKind

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 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 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for SyntaxKind

Source§

impl Syntax for SyntaxKind

Source§

fn from_raw(raw: RawSyntaxKind) -> Self

Construct a semantic item kind from the compact representation.
Source§

fn into_raw(self) -> RawSyntaxKind

Convert a semantic item kind into a more compact representation.
Source§

fn static_text(self) -> Option<&'static str>

Fixed text for a particular syntax kind. Implement for kinds that will only ever represent the same text, such as punctuation (like a semicolon), keywords (like fn), or operators (like <=). Read more

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

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

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

Compare self to key and return true if they are equal.
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.