pub struct QueryMatch<'cursor, 'tree> { /* private fields */ }Implementations§
Source§impl<'tree> QueryMatch<'_, 'tree>
impl<'tree> QueryMatch<'_, 'tree>
pub fn matched_nodes(&self) -> impl Iterator<Item = &MatchedNode<'tree>>
pub fn nodes_for_capture( &self, capture: Capture, ) -> impl Iterator<Item = &Node<'tree>>
pub fn matched_node(&self, i: MatchedNodeIdx) -> &MatchedNode<'tree>
pub const fn id(&self) -> u32
pub const fn pattern(&self) -> Pattern
Trait Implementations§
Auto Trait Implementations§
impl<'cursor, 'tree> Freeze for QueryMatch<'cursor, 'tree>
impl<'cursor, 'tree> RefUnwindSafe for QueryMatch<'cursor, 'tree>
impl<'cursor, 'tree> Send for QueryMatch<'cursor, 'tree>
impl<'cursor, 'tree> Sync for QueryMatch<'cursor, 'tree>
impl<'cursor, 'tree> Unpin for QueryMatch<'cursor, 'tree>
impl<'cursor, 'tree> !UnwindSafe for QueryMatch<'cursor, 'tree>
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