Struct autocorrect::config::SpellcheckConfig
source · [−]pub struct SpellcheckConfig {
pub mode: Option<SpellcheckMode>,
pub words: Vec<String>,
pub dict: HashMap<String, String>,
pub dict_re: HashMap<String, Regex>,
}
Fields
mode: Option<SpellcheckMode>
words: Vec<String>
dict: HashMap<String, String>
dict_re: HashMap<String, Regex>
Implementations
sourceimpl SpellcheckConfig
impl SpellcheckConfig
pub fn is_disabled(&self) -> bool
Trait Implementations
sourceimpl Clone for SpellcheckConfig
impl Clone for SpellcheckConfig
sourcefn clone(&self) -> SpellcheckConfig
fn clone(&self) -> SpellcheckConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SpellcheckConfig
impl Debug for SpellcheckConfig
sourceimpl Default for SpellcheckConfig
impl Default for SpellcheckConfig
sourcefn default() -> SpellcheckConfig
fn default() -> SpellcheckConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SpellcheckConfig
impl<'de> Deserialize<'de> for SpellcheckConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for SpellcheckConfig
impl Serialize for SpellcheckConfig
Auto Trait Implementations
impl RefUnwindSafe for SpellcheckConfig
impl Send for SpellcheckConfig
impl Sync for SpellcheckConfig
impl Unpin for SpellcheckConfig
impl UnwindSafe for SpellcheckConfig
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