pub enum GroupKind {
Capturing,
Named(String),
NonCapturing,
LookaheadPos,
LookaheadNeg,
LookbehindPos,
LookbehindNeg,
}Expand description
How a group should be treated by a regex engine.
Variants§
Capturing
Plain (...) — captures and numbers the match.
Named(String)
(?P<name>...) — captures with a name.
NonCapturing
(?:...) — groups without capturing.
LookaheadPos
(?=...) — positive lookahead.
LookaheadNeg
(?!...) — negative lookahead.
LookbehindPos
(?<=...) — positive lookbehind.
LookbehindNeg
(?<!...) — negative lookbehind.
Trait Implementations§
impl StructuralPartialEq for GroupKind
Auto Trait Implementations§
impl Freeze for GroupKind
impl RefUnwindSafe for GroupKind
impl Send for GroupKind
impl Sync for GroupKind
impl Unpin for GroupKind
impl UnsafeUnpin for GroupKind
impl UnwindSafe for GroupKind
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