Trait mun_syntax::ast::AstToken

source ·
pub trait AstToken {
    fn can_cast(kind: SyntaxKind) -> bool
    where
        Self: Sized
; fn cast(token: SyntaxToken) -> Option<Self>
    where
        Self: Sized
; fn syntax(&self) -> &SyntaxToken; fn text(&self) -> &str { ... } }
Expand description

Like an AstNode, but wraps tokens rather than interior nodes.

Required Methods§

Provided Methods§

Implementors§