pub struct Engine {
pub word_regex: Regex,
pub local_ignore_file: PathBuf,
pub local_ignored_words: HashSet<String>,
pub global_ignore_file: PathBuf,
pub global_ignored_words: HashSet<String>,
/* private fields */
}Fields§
§word_regex: Regex§local_ignore_file: PathBuf§local_ignored_words: HashSet<String>§global_ignore_file: PathBuf§global_ignored_words: HashSet<String>Implementations§
Source§impl Engine
impl Engine
Sourcepub fn get_misspelled(&self, path: &str) -> Vec<WordBad>
pub fn get_misspelled(&self, path: &str) -> Vec<WordBad>
Run spellcheck on file, returning WordBad per match.
Return values are not deduped yet.
Sourcepub fn get_ignore_status(&self, word: &str) -> Status
pub fn get_ignore_status(&self, word: &str) -> Status
Check if a word is ignored.
Sourcepub fn suggest(&self, word: &str, suggestions: &mut Vec<String>)
pub fn suggest(&self, word: &str, suggestions: &mut Vec<String>)
Make suggestions using underlying library.
TODO: incorporate ignores?
pub fn check(&self, word: &str) -> bool
Auto Trait Implementations§
impl Freeze for Engine
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnwindSafe for Engine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more