pub enum IspellResult {
Ok,
Root(String),
Compound,
Miss(IspellError),
Guess(IspellError),
None(IspellError),
}Expand description
A result from ispell, corresponding to a line that is sent back for each word.
See the manpage ispell(1) for more informations about the meaning of each variant.
Variants§
Ok
The word was found in the dictionnary.
Corresponds to ‘*’
Root(String)
The word wasn’t found, but a root word was found.
Corresponds to ‘+’
Compound
The word wasn’t found, but corresponds to the concatenation of two words
Corresponds to ‘-’
Miss(IspellError)
The word wasn’t found, but there are near misses
Corresponds to ‘&’
Guess(IspellError)
The word wasn’t found, but could be formed by adding illegal affixes to a known root
Corresponds to ‘?’
None(IspellError)
The word wasn’t found in the dictionnary and there are no suggestions
Corresponds to ‘#’
Trait Implementations§
Source§impl Debug for IspellResult
impl Debug for IspellResult
Source§impl PartialEq for IspellResult
impl PartialEq for IspellResult
impl StructuralPartialEq for IspellResult
Auto Trait Implementations§
impl Freeze for IspellResult
impl RefUnwindSafe for IspellResult
impl Send for IspellResult
impl Sync for IspellResult
impl Unpin for IspellResult
impl UnwindSafe for IspellResult
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