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<TextValidationOutcome> for TextValidationOutcome
impl PartialEq<TextValidationOutcome> 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<TextValidationOutcome> for TextValidationOutcome
impl PartialOrd<TextValidationOutcome> 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 StructuralEq for TextValidationOutcome
impl StructuralPartialEq for TextValidationOutcome
Auto Trait Implementations§
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