[][src]Enum rspell::SpellResult

pub enum SpellResult {
    Correct,
    Incorrect {
        suggestions: Vec<String>,
    },
}

Result of a check. Wraps possible corrections when this is an incorrect result.

Variants

Correct

The checked word was correct.

Incorrect

The checked word was incorrect, suggestions for correction are available.

Fields of Incorrect

suggestions: Vec<String>

Methods

impl SpellResult[src]

pub fn correct(&self) -> bool[src]

Returns true when it is a correct result, false otherwise.

Trait Implementations

impl Debug for SpellResult[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.