pub struct QueryCapture<'query, 'tree> {
pub node: Node<'tree>,
pub index: usize,
pub name: &'query str,
}Expand description
Wrapper around tree_sitter::QueryCapture
Fields§
§node: Node<'tree>§index: usize§name: &'query strTrait Implementations§
Source§impl<'query, 'tree> Clone for QueryCapture<'query, 'tree>
impl<'query, 'tree> Clone for QueryCapture<'query, 'tree>
Source§fn clone(&self) -> QueryCapture<'query, 'tree>
fn clone(&self) -> QueryCapture<'query, 'tree>
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<'query, 'tree> Debug for QueryCapture<'query, 'tree>
impl<'query, 'tree> Debug for QueryCapture<'query, 'tree>
Source§impl<'query, 'tree> Hash for QueryCapture<'query, 'tree>
impl<'query, 'tree> Hash for QueryCapture<'query, 'tree>
Source§impl<'query, 'tree> PartialEq for QueryCapture<'query, 'tree>
impl<'query, 'tree> PartialEq for QueryCapture<'query, 'tree>
impl<'query, 'tree> Copy for QueryCapture<'query, 'tree>
impl<'query, 'tree> Eq for QueryCapture<'query, 'tree>
impl<'query, 'tree> StructuralPartialEq for QueryCapture<'query, 'tree>
Auto Trait Implementations§
impl<'query, 'tree> Freeze for QueryCapture<'query, 'tree>
impl<'query, 'tree> RefUnwindSafe for QueryCapture<'query, 'tree>
impl<'query, 'tree> Send for QueryCapture<'query, 'tree>
impl<'query, 'tree> Sync for QueryCapture<'query, 'tree>
impl<'query, 'tree> Unpin for QueryCapture<'query, 'tree>
impl<'query, 'tree> UnsafeUnpin for QueryCapture<'query, 'tree>
impl<'query, 'tree> UnwindSafe for QueryCapture<'query, '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