pub struct CaptureGroup {
pub index: usize,
pub is_capturing: bool,
pub name: Option<String>,
}Expand description
A capture group in the pattern
Fields§
§index: usizeIndex of the capture group (0 = full match, 1+ = capture groups)
is_capturing: boolWhether this is a capturing group (false for non-capturing (?:…))
name: Option<String>Name of the group (for named captures like (?P<name>…))
Implementations§
Trait Implementations§
impl StructuralPartialEq for Group
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnwindSafe for Group
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