pub struct KindIsNot(pub &'static [&'static str]);Expand description
Predicate: true when node.kind() is not in the given kinds.
§Example
use tree_sitter_utils::kind_is_not;
let pred = kind_is_not(&["comment", "ERROR"]);
let _ = pred;Tuple Fields§
§0: &'static [&'static str]Trait Implementations§
Source§impl<Ctx> NodePredicate<Ctx> for KindIsNot
impl<Ctx> NodePredicate<Ctx> for KindIsNot
impl Copy for KindIsNot
Auto Trait Implementations§
impl Freeze for KindIsNot
impl RefUnwindSafe for KindIsNot
impl Send for KindIsNot
impl Sync for KindIsNot
impl Unpin for KindIsNot
impl UnsafeUnpin for KindIsNot
impl UnwindSafe for KindIsNot
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