pub struct NodeDepthLte(pub usize);Expand description
Predicate: true when the node depth (root = 0) is at most max.
§Example
use tree_sitter_utils::node_depth_lte;
let pred = node_depth_lte(3);
let _ = pred;Tuple Fields§
§0: usizeTrait Implementations§
Source§impl Clone for NodeDepthLte
impl Clone for NodeDepthLte
Source§fn clone(&self) -> NodeDepthLte
fn clone(&self) -> NodeDepthLte
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 NodeDepthLte
impl Debug for NodeDepthLte
Source§impl<Ctx> NodePredicate<Ctx> for NodeDepthLte
impl<Ctx> NodePredicate<Ctx> for NodeDepthLte
impl Copy for NodeDepthLte
Auto Trait Implementations§
impl Freeze for NodeDepthLte
impl RefUnwindSafe for NodeDepthLte
impl Send for NodeDepthLte
impl Sync for NodeDepthLte
impl Unpin for NodeDepthLte
impl UnsafeUnpin for NodeDepthLte
impl UnwindSafe for NodeDepthLte
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