pub struct QueryMatchCaptures<'query, 'tree, Query>where
Query: Query + 'tree,{ /* private fields */ }Expand description
Captures from a QueryMatch
Implementations§
Source§impl<'query, 'tree, Query> QueryMatchCaptures<'query, 'tree, Query>where
Query: Query + 'tree,
impl<'query, 'tree, Query> QueryMatchCaptures<'query, 'tree, Query>where
Query: Query + 'tree,
Sourcepub fn iter(
&self,
) -> impl Iterator<Item = <Query as Query>::Capture<'query, 'tree>>
pub fn iter( &self, ) -> impl Iterator<Item = <Query as Query>::Capture<'query, 'tree>>
Iterate the captures
Sourcepub fn get(
&self,
index: usize,
) -> Option<<Query as Query>::Capture<'query, 'tree>>
pub fn get( &self, index: usize, ) -> Option<<Query as Query>::Capture<'query, 'tree>>
Get the capture at the index
Trait Implementations§
Source§impl<'query, 'tree, Query> IntoIterator for QueryMatchCaptures<'query, 'tree, Query>where
Query: Query + 'tree,
impl<'query, 'tree, Query> IntoIterator for QueryMatchCaptures<'query, 'tree, Query>where
Query: Query + 'tree,
Source§type Item = <Query as Query>::Capture<'query, 'tree>
type Item = <Query as Query>::Capture<'query, 'tree>
The type of the elements being iterated over.
Source§type IntoIter = QueryMatchCapturesIntoIter<'query, 'tree, Query>
type IntoIter = QueryMatchCapturesIntoIter<'query, 'tree, Query>
Which kind of iterator are we turning this into?
Source§fn into_iter(
self,
) -> <QueryMatchCaptures<'query, 'tree, Query> as IntoIterator>::IntoIter
fn into_iter( self, ) -> <QueryMatchCaptures<'query, 'tree, Query> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Auto Trait Implementations§
impl<'query, 'tree, Query> Freeze for QueryMatchCaptures<'query, 'tree, Query>
impl<'query, 'tree, Query> RefUnwindSafe for QueryMatchCaptures<'query, 'tree, Query>where
Query: RefUnwindSafe,
impl<'query, 'tree, Query> Send for QueryMatchCaptures<'query, 'tree, Query>where
Query: Sync,
impl<'query, 'tree, Query> Sync for QueryMatchCaptures<'query, 'tree, Query>where
Query: Sync,
impl<'query, 'tree, Query> Unpin for QueryMatchCaptures<'query, 'tree, Query>
impl<'query, 'tree, Query> UnwindSafe for QueryMatchCaptures<'query, 'tree, Query>where
Query: RefUnwindSafe,
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