pub(crate) fn matches(&self, element: &SyntaxElement) -> bool {
        if let Some(kinds) = self.kinds.as_ref() {
            if !kinds.contains(&element.kind()) {
                return false;
            }
        }
        (self.pred)(element)
    }
/// Checks if this pattern matches an element
Checks if this pattern matches an element
Checks if this pattern matches an element
pub(crate) fn matches(&self, element: &SyntaxElement) -> bool {
        if let Some(kinds) = self.kinds.as_ref() {
            if !kinds.contains(&element.kind()) {
                return false;
            }
        }
        (self.pred)(element)
    }
pub ( crate ) fn matches ( & self , element : & SyntaxElement ) -> bool { if let Some ( kinds ) = self . kinds . as_ref ( ) { if ! kinds . contains ( & element . kind ( ) ) { return false ; } } ( self . pred ) ( element ) }
Checks if this pattern matches an element
Checks if this pattern matches an element
&self
element
&SyntaxElement