[−][src]Struct fzq::Fzq
A struct for finding approximate strings
Methods
impl Fzq
[src]
pub fn new() -> Fzq
[src]
Create a new instance of Fzq with default parameters. See the source for the actual values.
pub fn buffer_size<'a>(&'a mut self, size: usize) -> &'a mut Fzq
[src]
Set the buffer size
pub fn metric<'a>(&'a mut self, metric: Metric) -> &'a mut Fzq
[src]
Set the string metric to search
pub fn threshold<'a>(&'a mut self, threshold: f64) -> &'a mut Fzq
[src]
Set the threshold to check similarity is equal or greater than it. The value is between 0.0 and 1.0, where 1.0 means an exact match.
pub fn is_similar(&mut self, s: &str) -> bool
[src]
Check if the string is similar to buffered strings
Auto Trait Implementations
impl Sync for Fzq
impl Send for Fzq
impl Unpin for Fzq
impl RefUnwindSafe for Fzq
impl UnwindSafe for Fzq
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,