Struct pica_record::matcher::MatcherOptions
source · pub struct MatcherOptions { /* private fields */ }
Expand description
Options and flags which can be used to configure a matcher.
Implementations§
source§impl MatcherOptions
impl MatcherOptions
sourcepub fn new() -> Self
pub fn new() -> Self
Create new MatcherOptions.
§Example
use pica_record::matcher::MatcherOptions;
let _options = MatcherOptions::new();
sourcepub fn case_ignore(self, yes: bool) -> Self
pub fn case_ignore(self, yes: bool) -> Self
Whether to ignore case when comparing strings or not.
§Example
use pica_record::matcher::MatcherOptions;
let _options = MatcherOptions::new().case_ignore(true);
sourcepub fn strsim_threshold(self, threshold: f64) -> Self
pub fn strsim_threshold(self, threshold: f64) -> Self
Set the similarity threshold for the similar operator (=*
).
§Example
use pica_record::matcher::MatcherOptions;
let _options = MatcherOptions::new().strsim_threshold(0.75);
Trait Implementations§
source§impl Debug for MatcherOptions
impl Debug for MatcherOptions
source§impl Default for MatcherOptions
impl Default for MatcherOptions
source§fn default() -> Self
fn default() -> Self
Creates MatcherOptions with default settings.
§Example
use pica_record::matcher::MatcherOptions;
let _options = MatcherOptions::default();
Auto Trait Implementations§
impl Freeze for MatcherOptions
impl RefUnwindSafe for MatcherOptions
impl Send for MatcherOptions
impl Sync for MatcherOptions
impl Unpin for MatcherOptions
impl UnwindSafe for MatcherOptions
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