Trait glsl_lang_pp::processor::event::TokenLike

source ·
pub trait TokenLike: Clone {
    // Required methods
    fn kind(&self) -> SyntaxKind;
    fn text(&self) -> TokenText<'_>;
    fn text_range(&self) -> NodeSpan;
}

Required Methods§

source

fn kind(&self) -> SyntaxKind

source

fn text(&self) -> TokenText<'_>

source

fn text_range(&self) -> NodeSpan

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TokenLike for (&SyntaxToken<PreprocessorLang>, FileId)

source§

fn kind(&self) -> SyntaxKind

source§

fn text(&self) -> TokenText<'_>

source§

fn text_range(&self) -> NodeSpan

source§

impl TokenLike for (SyntaxToken<PreprocessorLang>, FileId)

source§

fn kind(&self) -> SyntaxKind

source§

fn text(&self) -> TokenText<'_>

source§

fn text_range(&self) -> NodeSpan

Implementors§