pub enum Status<'c> {
Valid,
Invalid,
Corrections(Vec<Cow<'c, str>>),
}
Expand description
Validity of a term in a Dictionary.
Variants§
Implementations§
source§impl<'c> Status<'c>
impl<'c> Status<'c>
pub fn is_invalid(&self) -> bool
pub fn is_valid(&self) -> bool
pub fn is_correction(&self) -> bool
pub fn corrections_mut(&mut self) -> impl Iterator<Item = &mut Cow<'c, str>>
pub fn into_owned(self) -> Status<'static>
pub fn borrow(&self) -> Status<'_>
Trait Implementations§
source§impl<'c> PartialEq for Status<'c>
impl<'c> PartialEq for Status<'c>
impl<'c> Eq for Status<'c>
impl<'c> StructuralPartialEq for Status<'c>
Auto Trait Implementations§
impl<'c> Freeze for Status<'c>
impl<'c> RefUnwindSafe for Status<'c>
impl<'c> Send for Status<'c>
impl<'c> Sync for Status<'c>
impl<'c> Unpin for Status<'c>
impl<'c> UnwindSafe for Status<'c>
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more