[−][src]Struct auto_correct::AutoCorrect
Methods
impl AutoCorrect
[src]
pub fn new() -> AutoCorrect
[src]
pub fn new_with_config(config: Config) -> AutoCorrect
[src]
pub fn candidates(&self, word: String) -> Vec<Candidate>
[src]
pub fn candidates_async(&self, word: String, tx: Sender<Candidate>)
[src]
Trait Implementations
impl AutoCorrectConfig for AutoCorrect
[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 ServiceUtils for AutoCorrect
[src]
impl Default for AutoCorrect
[src]
Auto Trait Implementations
impl Send for AutoCorrect
impl Sync for AutoCorrect
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
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>,