pub struct MatchConfig {
pub case_sensitive: bool,
pub max_matches: usize,
pub max_output_bytes: usize,
pub enable_wildcards: bool,
pub min_pattern_length: usize,
}Expand description
Pattern matching configuration
Fields§
§case_sensitive: boolCase-sensitive byte matching for string patterns. When disabled, matching uses ASCII case folding so byte offsets always refer to the original input.
max_matches: usizeMaximum number of matches to find
max_output_bytes: usizeMaximum aggregate bytes owned by returned matches and category buckets.
This includes cloned pattern metadata and matched bytes in both result collections. Exceeding the limit fails the search instead of returning a partial result.
enable_wildcards: boolEnable wildcard matching
min_pattern_length: usizeMinimum pattern length
Trait Implementations§
Source§impl Clone for MatchConfig
impl Clone for MatchConfig
Source§impl Debug for MatchConfig
impl Debug for MatchConfig
Auto Trait Implementations§
impl Freeze for MatchConfig
impl RefUnwindSafe for MatchConfig
impl Send for MatchConfig
impl Sync for MatchConfig
impl Unpin for MatchConfig
impl UnsafeUnpin for MatchConfig
impl UnwindSafe for MatchConfig
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