pub struct BacktrackConfig {
pub prefer_shortest: bool,
pub threshold: f32,
pub unanchored: bool,
}Expand description
Configuration for backtracking engine.
Fields§
§prefer_shortest: boolWhether to prefer shorter matches (non-greedy behavior).
threshold: f32Similarity threshold for fuzzy matching (0.0 - 1.0).
unanchored: boolWhether this is an unanchored match.
Trait Implementations§
Source§impl Clone for BacktrackConfig
impl Clone for BacktrackConfig
Source§fn clone(&self) -> BacktrackConfig
fn clone(&self) -> BacktrackConfig
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 BacktrackConfig
impl Debug for BacktrackConfig
Source§impl From<MatcherConfig> for BacktrackConfig
impl From<MatcherConfig> for BacktrackConfig
Source§fn from(config: MatcherConfig) -> Self
fn from(config: MatcherConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BacktrackConfig
impl RefUnwindSafe for BacktrackConfig
impl Send for BacktrackConfig
impl Sync for BacktrackConfig
impl Unpin for BacktrackConfig
impl UnsafeUnpin for BacktrackConfig
impl UnwindSafe for BacktrackConfig
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