pub struct RegexConfig {Show 14 fields
pub case_insensitive: bool,
pub verbose: bool,
pub dot_all: bool,
pub multi_line: bool,
pub ungreedy: bool,
pub similarity_threshold: f32,
pub default_edits: u8,
pub default_limits: Option<FuzzyLimits>,
pub penalties: Option<FuzzyPenalties>,
pub max_threads: usize,
pub match_flags: MatchFlags,
pub partial: bool,
pub timeout: Option<Duration>,
pub greedy_first: bool,
}Expand description
Configuration for regex matching.
Fields§
§case_insensitive: boolCase-insensitive matching.
verbose: boolVerbose mode - ignore whitespace and allow # comments in pattern.
dot_all: boolDot-all mode - . matches newlines.
multi_line: boolMulti-line mode - ^ and $ match at line boundaries.
ungreedy: boolUngreedy mode - invert default greediness of quantifiers.
similarity_threshold: f32Default similarity threshold.
default_edits: u8Default number of edits allowed.
default_limits: Option<FuzzyLimits>Default fuzzy limits.
penalties: Option<FuzzyPenalties>Edit penalties.
max_threads: usizeMaximum threads for NFA simulation (beam width).
match_flags: MatchFlagsMatch behavior flags.
partial: boolPartial matching - allow matches that reach end of text.
timeout: Option<Duration>Default timeout for matching operations.
greedy_first: boolGreedy first-match mode - return first match found (faster). Similar to mrab-regex behavior - searches position by position, returning on first match instead of searching for best match.
Trait Implementations§
Source§impl Clone for RegexConfig
impl Clone for RegexConfig
Source§fn clone(&self) -> RegexConfig
fn clone(&self) -> RegexConfig
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 RegexConfig
impl Debug for RegexConfig
Auto Trait Implementations§
impl Freeze for RegexConfig
impl RefUnwindSafe for RegexConfig
impl Send for RegexConfig
impl Sync for RegexConfig
impl Unpin for RegexConfig
impl UnsafeUnpin for RegexConfig
impl UnwindSafe for RegexConfig
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