#[repr(u32)]
pub enum Mode {
NoGroups,
Groups,
}
Expand description
Compile mode flags
The mode flags are used as values for the mode parameter of the various
compile calls Builder::build
for Pattern
or Patterns
.
By default, the matcher will only supply the start and end offsets of the
match when the match callback is called. Using mode flag Mode::Groups
will also fill the `captured’ array with the start and end offsets of all
the capturing groups specified by the pattern that has matched.
Variants
NoGroups
Disable capturing groups.
Groups
Enable capturing groups.
Trait Implementations
impl Copy for Mode
impl Eq for Mode
impl StructuralEq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more