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: boolThe 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: boolThe i flag, which enables case-insensitive matching.
(MDN)
global: boolThe g flag, which enables global matching.
(MDN)
dot_all: boolThe s flag, which causes the . special character to match additonal line terminators.
(MDN)
multiline: boolThe m flag, which enables multiline matching.
(MDN)
sticky: boolThe y flag, which enables sticky matching.
(MDN)
unicode: boolThe 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: boolThe 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