pub struct Config {
pub max_score: Option<u64>,
pub max_steps: Option<u64>,
pub timeout: Option<Duration>,
pub case_insensitive: bool,
pub dot_all: bool,
pub multi_line: bool,
pub unicode: bool,
pub downgrade_pattern: bool,
pub atomic_group_offsets: Option<HashSet<usize>>,
}Expand description
Options for is_safe and is_safe_pattern.
Fields§
§max_score: Option<u64>The score cap. Above this the pattern is considered unsafe. None means
no cap.
max_steps: Option<u64>The step cap. None means no cap.
timeout: Option<Duration>The wall-clock budget. None means no timeout.
case_insensitive: boolCase-insensitive mode.
dot_all: boolDot-all mode.
multi_line: boolMulti-line mode.
unicode: boolUnicode mode.
downgrade_pattern: boolWhether to downgrade an unsupported pattern.
atomic_group_offsets: Option<HashSet<usize>>Offsets of groups to treat as atomic. Only used with downgrade_pattern
set to false.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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