Struct symspell::SymSpellBuilder
source · [−]pub struct SymSpellBuilder<T: StringStrategy> { /* private fields */ }
Expand description
Builder for SymSpell
.
Implementations
sourceimpl<T: StringStrategy + Clone> SymSpellBuilder<T>
impl<T: StringStrategy + Clone> SymSpellBuilder<T>
sourcepub fn max_dictionary_edit_distance(&mut self, value: i64) -> &mut Self
pub fn max_dictionary_edit_distance(&mut self, value: i64) -> &mut Self
Maximum edit distance for doing lookups.
sourcepub fn prefix_length(&mut self, value: i64) -> &mut Self
pub fn prefix_length(&mut self, value: i64) -> &mut Self
The length of word prefixes used for spell checking.
sourcepub fn count_threshold(&mut self, value: i64) -> &mut Self
pub fn count_threshold(&mut self, value: i64) -> &mut Self
The minimum frequency count for dictionary words to be considered correct spellings.
pub fn distance_algorithm(&mut self, value: DistanceAlgorithm) -> &mut Self
Trait Implementations
sourceimpl<T: Clone + StringStrategy> Clone for SymSpellBuilder<T>
impl<T: Clone + StringStrategy> Clone for SymSpellBuilder<T>
sourcefn clone(&self) -> SymSpellBuilder<T>
fn clone(&self) -> SymSpellBuilder<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: StringStrategy + Clone> Default for SymSpellBuilder<T>
impl<T: StringStrategy + Clone> Default for SymSpellBuilder<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for SymSpellBuilder<T> where
T: RefUnwindSafe,
impl<T> Send for SymSpellBuilder<T> where
T: Send,
impl<T> Sync for SymSpellBuilder<T> where
T: Sync,
impl<T> Unpin for SymSpellBuilder<T> where
T: Unpin,
impl<T> UnwindSafe for SymSpellBuilder<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more