pub struct QueryMatchCaptures<'query, 'tree, Query: Query + 'tree> { /* private fields */ }Expand description
Captures from a QueryMatch
Implementations§
Source§impl<'query, 'tree, Query: Query + 'tree> QueryMatchCaptures<'query, 'tree, Query>
impl<'query, 'tree, Query: Query + 'tree> QueryMatchCaptures<'query, 'tree, Query>
Sourcepub fn iter(&self) -> impl Iterator<Item = Query::Capture<'query, 'tree>> + '_
pub fn iter(&self) -> impl Iterator<Item = Query::Capture<'query, 'tree>> + '_
Iterate the captures
Sourcepub fn get(&self, index: usize) -> Option<Query::Capture<'query, 'tree>>
pub fn get(&self, index: usize) -> Option<Query::Capture<'query, 'tree>>
Get the capture at the index
Trait Implementations§
Source§impl<'query, 'tree, Query: Query + 'tree> IntoIterator for QueryMatchCaptures<'query, 'tree, Query>
impl<'query, 'tree, Query: Query + 'tree> IntoIterator for QueryMatchCaptures<'query, 'tree, Query>
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