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§impl PartialOrd for TextValidationOutcome
impl PartialOrd for TextValidationOutcome
impl 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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