[][src]Struct fzq::Fzq

pub struct Fzq { /* fields omitted */ }

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]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]