pub struct FlagSets {
pub has_indices: bool,
pub ignore_case: bool,
pub global: bool,
pub dot_all: bool,
pub multiline: bool,
pub sticky: bool,
pub unicode: bool,
pub unicode_sets: bool,
}
Expand description
Boolean fields representing regular expression flags.
Fields§
§has_indices: bool
The d
flag, which causes capture indices to be returned when matching.
ExecResult
’s captures
field is None
when this flag is not set.
(MDN)
ignore_case: bool
The i
flag, which enables case-insensitive matching.
(MDN)
global: bool
The g
flag, which enables global matching.
(MDN)
dot_all: bool
The s
flag, which causes the .
special character to match additonal line terminators.
(MDN)
multiline: bool
The m
flag, which enables multiline matching.
(MDN)
sticky: bool
The y
flag, which enables sticky matching.
(MDN)
unicode: bool
The u
flag, which enables some unicode-related features.
Can’t be set at the same time as the v
(unicode_sets
) flag.
(MDN)
unicode_sets: bool
The v
flag, which enables a superset of the features enabled by the u
(unicode
) flag.
Can’t be set at the same time as the u
flag.
(MDN)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for FlagSets
impl Send for FlagSets
impl Sync for FlagSets
impl Unpin for FlagSets
impl UnwindSafe for FlagSets
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