cairo_lang_syntax::node

Trait Token

Source
pub trait Token: TypedSyntaxNode {
    // Required methods
    fn new_green(db: &dyn SyntaxGroup, text: SmolStr) -> Self::Green;
    fn text(&self, db: &dyn SyntaxGroup) -> SmolStr;
}

Required Methods§

Source

fn new_green(db: &dyn SyntaxGroup, text: SmolStr) -> Self::Green

Source

fn text(&self, db: &dyn SyntaxGroup) -> SmolStr

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Token for TokenAnd

Source§

impl Token for TokenAndAnd

Source§

impl Token for TokenArrow

Source§

impl Token for TokenAs

Source§

impl Token for TokenAt

Source§

impl Token for TokenBadCharacters

Source§

impl Token for TokenBitNot

Source§

impl Token for TokenBreak

Source§

impl Token for TokenColon

Source§

impl Token for TokenColonColon

Source§

impl Token for TokenComma

Source§

impl Token for TokenConst

Source§

impl Token for TokenContinue

Source§

impl Token for TokenDiv

Source§

impl Token for TokenDivEq

Source§

impl Token for TokenDot

Source§

impl Token for TokenDotDot

Source§

impl Token for TokenElse

Source§

impl Token for TokenEmpty

Source§

impl Token for TokenEndOfFile

Source§

impl Token for TokenEnum

Source§

impl Token for TokenEq

Source§

impl Token for TokenEqEq

Source§

impl Token for TokenExtern

Source§

impl Token for TokenFalse

Source§

impl Token for TokenFor

Source§

impl Token for TokenFunction

Source§

impl Token for TokenGE

Source§

impl Token for TokenGT

Source§

impl Token for TokenHash

Source§

impl Token for TokenIdentifier

Source§

impl Token for TokenIf

Source§

impl Token for TokenImpl

Source§

impl Token for TokenImplicits

Source§

impl Token for TokenLBrace

Source§

impl Token for TokenLBrack

Source§

impl Token for TokenLE

Source§

impl Token for TokenLParen

Source§

impl Token for TokenLT

Source§

impl Token for TokenLet

Source§

impl Token for TokenLiteralNumber

Source§

impl Token for TokenLoop

Source§

impl Token for TokenMatch

Source§

impl Token for TokenMatchArrow

Source§

impl Token for TokenMinus

Source§

impl Token for TokenMinusEq

Source§

impl Token for TokenMissing

Source§

impl Token for TokenMod

Source§

impl Token for TokenModEq

Source§

impl Token for TokenModule

Source§

impl Token for TokenMul

Source§

impl Token for TokenMulEq

Source§

impl Token for TokenMut

Source§

impl Token for TokenNeq

Source§

impl Token for TokenNewline

Source§

impl Token for TokenNoPanic

Source§

impl Token for TokenNot

Source§

impl Token for TokenOf

Source§

impl Token for TokenOr

Source§

impl Token for TokenOrOr

Source§

impl Token for TokenPlus

Source§

impl Token for TokenPlusEq

Source§

impl Token for TokenPub

Source§

impl Token for TokenQuestionMark

Source§

impl Token for TokenRBrace

Source§

impl Token for TokenRBrack

Source§

impl Token for TokenRParen

Source§

impl Token for TokenRef

Source§

impl Token for TokenReturn

Source§

impl Token for TokenSemicolon

Source§

impl Token for TokenShortString

Source§

impl Token for TokenSingleLineComment

Source§

impl Token for TokenSingleLineDocComment

Source§

impl Token for TokenSingleLineInnerComment

Source§

impl Token for TokenSkipped

Source§

impl Token for TokenString

Source§

impl Token for TokenStruct

Source§

impl Token for TokenTrait

Source§

impl Token for TokenTrue

Source§

impl Token for TokenType

Source§

impl Token for TokenUnderscore

Source§

impl Token for TokenUse

Source§

impl Token for TokenWhile

Source§

impl Token for TokenWhitespace

Source§

impl Token for TokenXor