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
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 more