pub struct KindIs(pub &'static [&'static str]);Expand description
Predicate: true when node.kind() is one of the given static kinds.
§Example
use tree_sitter_utils::kind_is;
let pred = kind_is(&["identifier", "type_identifier"]);
let _ = pred;Tuple Fields§
§0: &'static [&'static str]Trait Implementations§
Source§impl<Ctx> NodePredicate<Ctx> for KindIs
impl<Ctx> NodePredicate<Ctx> for KindIs
impl Copy for KindIs
Auto Trait Implementations§
impl Freeze for KindIs
impl RefUnwindSafe for KindIs
impl Send for KindIs
impl Sync for KindIs
impl Unpin for KindIs
impl UnsafeUnpin for KindIs
impl UnwindSafe for KindIs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more