[−][src]Struct auto_correct::prelude::Config
Methods
impl Config
[src]
pub fn new() -> Config
[src]
pub fn new_with_params(
max_edit: u8,
pool_size: usize,
locale: SupportedLocale,
run_mode: RunMode,
override_dict: &str
) -> Config
[src]
max_edit: u8,
pool_size: usize,
locale: SupportedLocale,
run_mode: RunMode,
override_dict: &str
) -> Config
pub fn get_dict_path(&self) -> String
[src]
Trait Implementations
impl AutoCorrectConfig for Config
[src]
fn set_max_edit(&mut self, max_edit: u8)
[src]
fn get_max_edit(&self) -> u8
[src]
fn set_pool_size(&mut self, pool_size: usize)
[src]
fn get_pool_size(&self) -> usize
[src]
fn set_locale(&mut self, locale: SupportedLocale)
[src]
fn get_locale(&self) -> SupportedLocale
[src]
fn set_run_mode(&mut self, mode: RunMode)
[src]
fn get_run_mode(&self) -> RunMode
[src]
fn set_override_dict(&mut self, dict_path: &str)
[src]
fn get_override_dict(&self) -> String
[src]
impl Clone for Config
[src]
fn clone(&self) -> Self
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Config
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,