pub struct HasParentKind(pub &'static str);Expand description
Predicate: true when node.parent() has the given kind.
§Example
use tree_sitter_utils::has_parent_kind;
let pred = has_parent_kind("function_definition");
let _ = pred;Tuple Fields§
§0: &'static strTrait Implementations§
Source§impl Clone for HasParentKind
impl Clone for HasParentKind
Source§fn clone(&self) -> HasParentKind
fn clone(&self) -> HasParentKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HasParentKind
impl Debug for HasParentKind
Source§impl<Ctx> NodePredicate<Ctx> for HasParentKind
impl<Ctx> NodePredicate<Ctx> for HasParentKind
impl Copy for HasParentKind
Auto Trait Implementations§
impl Freeze for HasParentKind
impl RefUnwindSafe for HasParentKind
impl Send for HasParentKind
impl Sync for HasParentKind
impl Unpin for HasParentKind
impl UnsafeUnpin for HasParentKind
impl UnwindSafe for HasParentKind
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