[−][src]Struct spellbound::Checker
Instance of the system spell checker.
Methods
impl Checker
[src]
pub fn new() -> Self
[src]
Create an instance of the system spell checker.
pub fn check<'a, 'b: 'a>(
&'b mut self,
text: &'a str
) -> impl Iterator<Item = SpellingError> + 'a
[src]
&'b mut self,
text: &'a str
) -> impl Iterator<Item = SpellingError> + 'a
Check a text for spelling errors. Returns an iterator over the errors present in the text.
pub fn ignore(&mut self, word: &str)
[src]
Instructs the spell checker to ignore a word in future checks. The word is temporarily added to the spell checker's ignore list, and other instances of the spell checker will not ignore the word.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Checker
impl Send for Checker
impl Sync for Checker
impl Unpin for Checker
impl UnwindSafe for Checker
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,