pub struct Flags {
pub global: bool,
pub ignore_case: bool,
pub multiline: bool,
pub dot_all: bool,
pub sticky: bool,
pub unicode: bool,
pub has_indices: bool,
pub unicode_sets: bool,
}Expand description
The flags a pattern was compiled with.
Fields§
§global: boolg: exec advances lastIndex and String methods replace every match.
ignore_case: booli: case-insensitive matching.
multiline: boolm: ^ and $ also match at line terminators.
dot_all: bools: . also matches line terminators.
sticky: booly: a match must start exactly at lastIndex.
unicode: boolu: accepted but only affects validation, which this engine does not do.
has_indices: boold: exec also reports index pairs. Accepted; the array’s .indices is built
by the RegExp builtin.
unicode_sets: boolv: Unicode-aware matching with the full character-class set grammar.
Mutually exclusive with u, and strict about the same things — plus it accepts
nested classes, &&/-- and \q{…} string sets, which u does not.
Implementations§
Trait Implementations§
impl Copy for Flags
impl Eq for Flags
impl StructuralPartialEq for Flags
Auto Trait Implementations§
impl Forget for Flags
impl Freeze for Flags
impl Move for Flags
impl RefUnwindSafe for Flags
impl Send for Flags
impl Sync for Flags
impl Unpin for Flags
impl UnsafeUnpin for Flags
impl UnwindSafe for Flags
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