pub struct Captures<'s> { /* private fields */ }Expand description
The groups of one match of Regex::captures, as preg_match() puts
them in $matches.
Implementations§
Source§impl<'s> Captures<'s>
impl<'s> Captures<'s>
Sourcepub fn get(&self, group: usize) -> Option<&'s [u8]>
pub fn get(&self, group: usize) -> Option<&'s [u8]>
$matches[$group]: None when $matches has no such key (groups
after the last one that took part in the match); an unset group
before it is "".
Trait Implementations§
Auto Trait Implementations§
impl<'s> Forget for Captures<'s>
impl<'s> Freeze for Captures<'s>
impl<'s> Move for Captures<'s>
impl<'s> RefUnwindSafe for Captures<'s>
impl<'s> Send for Captures<'s>
impl<'s> Sync for Captures<'s>
impl<'s> Unpin for Captures<'s>
impl<'s> UnsafeUnpin for Captures<'s>
impl<'s> UnwindSafe for Captures<'s>
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