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