pub enum IsSarcasm {
Yes(StartingCase),
No,
TooShort,
}Expand description
Value returned by is_sarcasm determining if the input is SaRcAsM.
Variants§
Yes(StartingCase)
Input text is SaRcAsM. Contains the case of the first letter of the SaRcAsM text.
No
Input text is either normal text or malformed SaRcAsM text.
TooShort
Input is either empty or contains only non-alphanumeric characters.
Trait Implementations§
impl Copy for IsSarcasm
impl StructuralPartialEq for IsSarcasm
Auto Trait Implementations§
impl Freeze for IsSarcasm
impl RefUnwindSafe for IsSarcasm
impl Send for IsSarcasm
impl Sync for IsSarcasm
impl Unpin for IsSarcasm
impl UnwindSafe for IsSarcasm
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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