Trait IsSyntax

Source
pub trait IsSyntax {
    // Required methods
    fn kind(&self) -> SyntaxKind;
    fn text_range(&self) -> TextRange;
    fn parent(&self) -> Option<SyntaxNode>;
}
Expand description

Convenience abstraction for shared methods of syntax tree types (i.e. SyntaxToken, SyntaxNode and SyntaxElement).

Required Methods§

Implementations on Foreign Types§

Source§

impl IsSyntax for SyntaxElement

Source§

impl IsSyntax for SyntaxNode

Source§

impl IsSyntax for SyntaxToken

Implementors§