pub struct PatternFlags {
pub unicode: bool,
pub full_unicode: bool,
pub case_insensitive: bool,
pub dot_matches_new_line: bool,
pub ignore_whitespace: bool,
}Expand description
global pattern-level flags, set from EngineOptions.
Fields§
§unicode: bool\w/\d/\s match full Unicode (true) or ASCII only (false).
full_unicode: bool\w covers all Unicode word chars including 3- and 4-byte sequences.
case_insensitive: boolglobal case-insensitive matching.
dot_matches_new_line: bool. matches \n (behaves like _).
ignore_whitespace: boolallow whitespace and # comments in the pattern.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PatternFlags
impl RefUnwindSafe for PatternFlags
impl Send for PatternFlags
impl Sync for PatternFlags
impl Unpin for PatternFlags
impl UnsafeUnpin for PatternFlags
impl UnwindSafe for PatternFlags
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