pub enum TextValidationOutcome {
Ok,
BadCharacters,
NotOk,
}
Expand description
The result of a text validation procedure (please see validate_iso_8859
).
Variants§
Ok
The text is fully valid and can be safely decoded.
BadCharacters
Some characters may have to be replaced, other than that the text can be safely decoded.
NotOk
The text cannot be decoded.
Trait Implementations§
source§impl Clone for TextValidationOutcome
impl Clone for TextValidationOutcome
source§fn clone(&self) -> TextValidationOutcome
fn clone(&self) -> TextValidationOutcome
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TextValidationOutcome
impl Debug for TextValidationOutcome
source§impl Ord for TextValidationOutcome
impl Ord for TextValidationOutcome
source§fn cmp(&self, other: &TextValidationOutcome) -> Ordering
fn cmp(&self, other: &TextValidationOutcome) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TextValidationOutcome
impl PartialEq for TextValidationOutcome
source§fn eq(&self, other: &TextValidationOutcome) -> bool
fn eq(&self, other: &TextValidationOutcome) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TextValidationOutcome
impl PartialOrd for TextValidationOutcome
source§fn partial_cmp(&self, other: &TextValidationOutcome) -> Option<Ordering>
fn partial_cmp(&self, other: &TextValidationOutcome) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for TextValidationOutcome
impl Eq for TextValidationOutcome
impl StructuralPartialEq for TextValidationOutcome
Auto Trait Implementations§
impl Freeze for TextValidationOutcome
impl RefUnwindSafe for TextValidationOutcome
impl Send for TextValidationOutcome
impl Sync for TextValidationOutcome
impl Unpin for TextValidationOutcome
impl UnwindSafe for TextValidationOutcome
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