pub trait WordChecker: Send + Sync {
// Required methods
fn check(&self, word: &str) -> bool;
fn suggest(&self, word: &str, limit: usize) -> Vec<String>;
}Expand description
A word checker that can verify spelling and suggest corrections.
This trait abstracts the dictionary implementation, allowing different backends (spellbook, hunspell, embedded, mock, etc.).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".