Skip to main content

SyntaxKindMatch

Trait SyntaxKindMatch 

Source
pub trait SyntaxKindMatch {
    // Required method
    fn matches(&self, kind: SyntaxKind) -> bool;
}
Expand description

Trait for matching syntax kinds, used in *_by_kind methods.

Required Methods§

Source

fn matches(&self, kind: SyntaxKind) -> bool

Implementations on Foreign Types§

Source§

impl<const N: usize> SyntaxKindMatch for [SyntaxKind; N]

Source§

fn matches(&self, kind: SyntaxKind) -> bool

Implementors§