Struct hunspell_rs::Hunspell
source · [−]pub struct Hunspell { /* private fields */ }
Implementations
sourceimpl Hunspell
impl Hunspell
pub fn new(affpath: &str, dicpath: &str) -> Hunspell
pub fn new_with_key(affpath: &str, dicpath: &str, key: &str) -> Hunspell
sourcepub fn add_dictionary(&mut self, dicpath: &str) -> bool
pub fn add_dictionary(&mut self, dicpath: &str) -> bool
Add an additional dictonary for lookup usage for i.e. check
.
sourcepub fn add(&mut self, word: &str) -> bool
pub fn add(&mut self, word: &str) -> bool
Add a word to the runtime dictionary.
Once the Hunspell
struct is destroyed,
the added words are forgotten, since they were never persisted
in the first place.
pub fn check(&self, word: &str) -> CheckResult
pub fn suggest(&self, word: &str) -> Vec<String>
pub fn analyze(&self, word: &str) -> Vec<String>
pub fn stem(&self, word: &str) -> Vec<String>
pub fn generate(&self, word1: &str, word2: &str) -> Vec<String>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Hunspell
impl !Send for Hunspell
impl !Sync for Hunspell
impl Unpin for Hunspell
impl UnwindSafe for Hunspell
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more