pub struct MatchFlags {
pub best_match: bool,
pub enhance_match: bool,
pub posix: bool,
pub verbose: bool,
pub dot_all: bool,
pub multi_line: bool,
pub ungreedy: bool,
pub global: bool,
pub unicode: bool,
}Expand description
Flags controlling match behavior.
Fields§
§best_match: boolBESTMATCH flag - find best match instead of first.
enhance_match: boolENHANCEMATCH flag - improve match quality.
posix: boolPOSIX flag - find longest match at leftmost position.
verbose: bool(?x) - Verbose mode (ignore whitespace, allow comments).
dot_all: bool(?s) - Dot-all mode (. matches newlines).
multi_line: bool(?m) - Multi-line mode (^/$ match at line boundaries).
ungreedy: bool(?U) - Ungreedy mode (invert greediness of quantifiers).
When set, *, +, ? become non-greedy by default, and *?, +?, ?? become greedy.
global: bool(?g) - Global mode (find all matches).
When false (default), stops at first valid match (faster).
When true, searches for all matches.
unicode: bool(?u) - Unicode mode (enable Unicode character classes).
When set, \w, \d, \s match Unicode characters instead of ASCII only.
Trait Implementations§
Source§impl Clone for MatchFlags
impl Clone for MatchFlags
Source§fn clone(&self) -> MatchFlags
fn clone(&self) -> MatchFlags
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MatchFlags
impl Debug for MatchFlags
Source§impl Default for MatchFlags
impl Default for MatchFlags
Source§fn default() -> MatchFlags
fn default() -> MatchFlags
Returns the “default value” for a type. Read more
impl Copy for MatchFlags
Auto Trait Implementations§
impl Freeze for MatchFlags
impl RefUnwindSafe for MatchFlags
impl Send for MatchFlags
impl Sync for MatchFlags
impl Unpin for MatchFlags
impl UnsafeUnpin for MatchFlags
impl UnwindSafe for MatchFlags
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