[][src]Struct json_surf::fuzzy::FuzzyConfig

pub struct FuzzyConfig { /* fields omitted */ }

Load multiple dictionary entries from a file of word/frequency count pairs. This goes for bootstrapping symspell

  • corpus - file paths.
  • term_index - The column position of the word.
  • count_index - The column position of the frequency count.
  • separator - Separator between word and frequency

Implementations

impl FuzzyConfig[src]

Creates an instance

pub fn new(
    corpus: PathBuf,
    term_index: i64,
    count_index: i64,
    separator: String
) -> Self
[src]

Trait Implementations

impl Clone for FuzzyConfig[src]

impl Debug for FuzzyConfig[src]

impl Default for FuzzyConfig[src]

By default load names from corpus directory

impl<'_> From<&'_ str> for FuzzyConfig[src]

impl From<PathBuf> for FuzzyConfig[src]

impl PartialEq<FuzzyConfig> for FuzzyConfig[src]

impl StructuralPartialEq for FuzzyConfig[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T> Fruit for T where
    T: Send + Downcast, 
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,