Enum cairo_lang_syntax::node::kind::SyntaxKind
source · pub enum SyntaxKind {
Show 275 variants
Trivia,
ExprList,
Arg,
ArgClauseNamed,
ArgClauseUnnamed,
ArgClauseFieldInitShorthand,
ExprFieldInitShorthand,
ArgList,
ExprMissing,
PathSegmentSimple,
OptionTerminalColonColonEmpty,
PathSegmentWithGenericArgs,
ExprPath,
ExprParenthesized,
ExprUnary,
ExprBinary,
ExprListParenthesized,
ExprFunctionCall,
ArgListParenthesized,
OptionArgListParenthesizedEmpty,
ExprStructCtorCall,
StructArgListBraced,
ExprBlock,
ExprMatch,
MatchArms,
MatchArm,
ExprIf,
ExprLoop,
ElseClause,
OptionElseClauseEmpty,
ExprErrorPropagate,
ExprIndexed,
ExprInlineMacro,
StructArgExpr,
OptionStructArgExprEmpty,
StructArgSingle,
StructArgTail,
StructArgList,
ArgListBraced,
ArgListBracketed,
WrappedArgListMissing,
PatternIdentifier,
PatternStruct,
PatternStructParamList,
PatternTuple,
PatternList,
PatternStructParamWithExpr,
PatternEnum,
PatternEnumInnerPattern,
OptionPatternEnumInnerPatternEmpty,
TypeClause,
OptionTypeClauseEmpty,
ReturnTypeClause,
OptionReturnTypeClauseEmpty,
StatementList,
StatementMissing,
StatementLet,
OptionTerminalSemicolonEmpty,
StatementExpr,
StatementContinue,
ExprClause,
OptionExprClauseEmpty,
StatementReturn,
StatementBreak,
Param,
ModifierList,
ParamList,
ImplicitsClause,
ImplicitsList,
OptionImplicitsClauseEmpty,
OptionTerminalNoPanicEmpty,
FunctionSignature,
Member,
MemberList,
Variant,
VariantList,
ItemList,
ItemMissing,
Attribute,
AttributeList,
ItemModule,
ModuleBody,
FunctionDeclaration,
ItemConstant,
FunctionWithBody,
ItemExternFunction,
ItemExternType,
ItemTrait,
TraitBody,
TraitItemList,
TraitItemMissing,
TraitItemFunction,
ItemImpl,
ItemInlineMacro,
ImplBody,
ImplItemList,
ImplItemMissing,
ItemImplAlias,
ItemStruct,
ItemEnum,
ItemTypeAlias,
ItemUse,
UsePathLeaf,
UsePathSingle,
UsePathMulti,
UsePathList,
AliasClause,
OptionAliasClauseEmpty,
GenericArgNamed,
GenericArgUnnamed,
GenericArgValueExpr,
GenericArgs,
GenericArgList,
OptionWrappedGenericParamListEmpty,
WrappedGenericParamList,
GenericParamList,
GenericParamType,
GenericParamConst,
GenericParamImplNamed,
GenericParamImplAnonymous,
TriviumSkippedNode,
TokenIdentifier,
TerminalIdentifier,
TokenLiteralNumber,
TerminalLiteralNumber,
TokenShortString,
TerminalShortString,
TokenString,
TerminalString,
TokenAs,
TerminalAs,
TokenConst,
TerminalConst,
TokenElse,
TerminalElse,
TokenEnum,
TerminalEnum,
TokenExtern,
TerminalExtern,
TokenFalse,
TerminalFalse,
TokenFunction,
TerminalFunction,
TokenIf,
TerminalIf,
TokenLoop,
TerminalLoop,
TokenImpl,
TerminalImpl,
TokenImplicits,
TerminalImplicits,
TokenLet,
TerminalLet,
TokenMatch,
TerminalMatch,
TokenModule,
TerminalModule,
TokenMut,
TerminalMut,
TokenNoPanic,
TerminalNoPanic,
TokenOf,
TerminalOf,
TokenRef,
TerminalRef,
TokenContinue,
TerminalContinue,
TokenReturn,
TerminalReturn,
TokenBreak,
TerminalBreak,
TokenStruct,
TerminalStruct,
TokenTrait,
TerminalTrait,
TokenTrue,
TerminalTrue,
TokenType,
TerminalType,
TokenUse,
TerminalUse,
TokenAnd,
TerminalAnd,
TokenAndAnd,
TerminalAndAnd,
TokenArrow,
TerminalArrow,
TokenAt,
TerminalAt,
TokenBadCharacters,
TerminalBadCharacters,
TokenColon,
TerminalColon,
TokenColonColon,
TerminalColonColon,
TokenComma,
TerminalComma,
TokenDiv,
TerminalDiv,
TokenDivEq,
TerminalDivEq,
TokenDot,
TerminalDot,
TokenDotDot,
TerminalDotDot,
TokenEndOfFile,
TerminalEndOfFile,
TokenEq,
TerminalEq,
TokenEqEq,
TerminalEqEq,
TokenGE,
TerminalGE,
TokenGT,
TerminalGT,
TokenHash,
TerminalHash,
TokenLBrace,
TerminalLBrace,
TokenLBrack,
TerminalLBrack,
TokenLE,
TerminalLE,
TokenLParen,
TerminalLParen,
TokenLT,
TerminalLT,
TokenMatchArrow,
TerminalMatchArrow,
TokenMinus,
TerminalMinus,
TokenMinusEq,
TerminalMinusEq,
TokenMod,
TerminalMod,
TokenModEq,
TerminalModEq,
TokenMul,
TerminalMul,
TokenMulEq,
TerminalMulEq,
TokenNeq,
TerminalNeq,
TokenNot,
TerminalNot,
TokenBitNot,
TerminalBitNot,
TokenOr,
TerminalOr,
TokenOrOr,
TerminalOrOr,
TokenPlus,
TerminalPlus,
TokenPlusEq,
TerminalPlusEq,
TokenQuestionMark,
TerminalQuestionMark,
TokenRBrace,
TerminalRBrace,
TokenRBrack,
TerminalRBrack,
TokenRParen,
TerminalRParen,
TokenSemicolon,
TerminalSemicolon,
TokenUnderscore,
TerminalUnderscore,
TokenXor,
TerminalXor,
SyntaxFile,
TokenSingleLineComment,
TokenWhitespace,
TokenNewline,
TokenMissing,
TokenSkipped,
}
Variants§
Trivia
ExprList
Arg
ArgClauseNamed
ArgClauseUnnamed
ArgClauseFieldInitShorthand
ExprFieldInitShorthand
ArgList
ExprMissing
PathSegmentSimple
OptionTerminalColonColonEmpty
PathSegmentWithGenericArgs
ExprPath
ExprParenthesized
ExprUnary
ExprBinary
ExprListParenthesized
ExprFunctionCall
ArgListParenthesized
OptionArgListParenthesizedEmpty
ExprStructCtorCall
StructArgListBraced
ExprBlock
ExprMatch
MatchArms
MatchArm
ExprIf
ExprLoop
ElseClause
OptionElseClauseEmpty
ExprErrorPropagate
ExprIndexed
ExprInlineMacro
StructArgExpr
OptionStructArgExprEmpty
StructArgSingle
StructArgTail
StructArgList
ArgListBraced
ArgListBracketed
WrappedArgListMissing
PatternIdentifier
PatternStruct
PatternStructParamList
PatternTuple
PatternList
PatternStructParamWithExpr
PatternEnum
PatternEnumInnerPattern
OptionPatternEnumInnerPatternEmpty
TypeClause
OptionTypeClauseEmpty
ReturnTypeClause
OptionReturnTypeClauseEmpty
StatementList
StatementMissing
StatementLet
OptionTerminalSemicolonEmpty
StatementExpr
StatementContinue
ExprClause
OptionExprClauseEmpty
StatementReturn
StatementBreak
Param
ModifierList
ParamList
ImplicitsClause
ImplicitsList
OptionImplicitsClauseEmpty
OptionTerminalNoPanicEmpty
FunctionSignature
Member
MemberList
Variant
VariantList
ItemList
ItemMissing
Attribute
AttributeList
ItemModule
ModuleBody
FunctionDeclaration
ItemConstant
FunctionWithBody
ItemExternFunction
ItemExternType
ItemTrait
TraitBody
TraitItemList
TraitItemMissing
TraitItemFunction
ItemImpl
ItemInlineMacro
ImplBody
ImplItemList
ImplItemMissing
ItemImplAlias
ItemStruct
ItemEnum
ItemTypeAlias
ItemUse
UsePathLeaf
UsePathSingle
UsePathMulti
UsePathList
AliasClause
OptionAliasClauseEmpty
GenericArgNamed
GenericArgUnnamed
GenericArgValueExpr
GenericArgs
GenericArgList
OptionWrappedGenericParamListEmpty
WrappedGenericParamList
GenericParamList
GenericParamType
GenericParamConst
GenericParamImplNamed
GenericParamImplAnonymous
TriviumSkippedNode
TokenIdentifier
TerminalIdentifier
TokenLiteralNumber
TerminalLiteralNumber
TokenShortString
TerminalShortString
TokenString
TerminalString
TokenAs
TerminalAs
TokenConst
TerminalConst
TokenElse
TerminalElse
TokenEnum
TerminalEnum
TokenExtern
TerminalExtern
TokenFalse
TerminalFalse
TokenFunction
TerminalFunction
TokenIf
TerminalIf
TokenLoop
TerminalLoop
TokenImpl
TerminalImpl
TokenImplicits
TerminalImplicits
TokenLet
TerminalLet
TokenMatch
TerminalMatch
TokenModule
TerminalModule
TokenMut
TerminalMut
TokenNoPanic
TerminalNoPanic
TokenOf
TerminalOf
TokenRef
TerminalRef
TokenContinue
TerminalContinue
TokenReturn
TerminalReturn
TokenBreak
TerminalBreak
TokenStruct
TerminalStruct
TokenTrait
TerminalTrait
TokenTrue
TerminalTrue
TokenType
TerminalType
TokenUse
TerminalUse
TokenAnd
TerminalAnd
TokenAndAnd
TerminalAndAnd
TokenArrow
TerminalArrow
TokenAt
TerminalAt
TokenBadCharacters
TerminalBadCharacters
TokenColon
TerminalColon
TokenColonColon
TerminalColonColon
TokenComma
TerminalComma
TokenDiv
TerminalDiv
TokenDivEq
TerminalDivEq
TokenDot
TerminalDot
TokenDotDot
TerminalDotDot
TokenEndOfFile
TerminalEndOfFile
TokenEq
TerminalEq
TokenEqEq
TerminalEqEq
TokenGE
TerminalGE
TokenGT
TerminalGT
TokenHash
TerminalHash
TokenLBrace
TerminalLBrace
TokenLBrack
TerminalLBrack
TokenLE
TerminalLE
TokenLParen
TerminalLParen
TokenLT
TerminalLT
TokenMatchArrow
TerminalMatchArrow
TokenMinus
TerminalMinus
TokenMinusEq
TerminalMinusEq
TokenMod
TerminalMod
TokenModEq
TerminalModEq
TokenMul
TerminalMul
TokenMulEq
TerminalMulEq
TokenNeq
TerminalNeq
TokenNot
TerminalNot
TokenBitNot
TerminalBitNot
TokenOr
TerminalOr
TokenOrOr
TerminalOrOr
TokenPlus
TerminalPlus
TokenPlusEq
TerminalPlusEq
TokenQuestionMark
TerminalQuestionMark
TokenRBrace
TerminalRBrace
TokenRBrack
TerminalRBrack
TokenRParen
TerminalRParen
TokenSemicolon
TerminalSemicolon
TokenUnderscore
TerminalUnderscore
TokenXor
TerminalXor
SyntaxFile
TokenSingleLineComment
TokenWhitespace
TokenNewline
TokenMissing
TokenSkipped
Implementations§
source§impl SyntaxKind
impl SyntaxKind
pub fn is_token(&self) -> bool
pub fn is_terminal(&self) -> bool
pub fn is_keyword_token(&self) -> bool
pub fn is_keyword_terminal(&self) -> bool
Trait Implementations§
source§impl Clone for SyntaxKind
impl Clone for SyntaxKind
source§fn clone(&self) -> SyntaxKind
fn clone(&self) -> SyntaxKind
Returns a copy 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 SyntaxKind
impl Debug for SyntaxKind
source§impl Display for SyntaxKind
impl Display for SyntaxKind
source§impl Hash for SyntaxKind
impl Hash for SyntaxKind
source§impl PartialEq for SyntaxKind
impl PartialEq for SyntaxKind
source§fn eq(&self, other: &SyntaxKind) -> bool
fn eq(&self, other: &SyntaxKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SyntaxKind
impl Eq for SyntaxKind
impl StructuralEq for SyntaxKind
impl StructuralPartialEq for SyntaxKind
Auto Trait Implementations§
impl RefUnwindSafe for SyntaxKind
impl Send for SyntaxKind
impl Sync for SyntaxKind
impl Unpin for SyntaxKind
impl UnwindSafe for SyntaxKind
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.