Enum dicom_encoding::text::TextValidationOutcome
source · [−]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
sourceimpl Clone for TextValidationOutcome
impl Clone for TextValidationOutcome
sourcefn clone(&self) -> TextValidationOutcome
fn clone(&self) -> TextValidationOutcome
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for TextValidationOutcome
impl Debug for TextValidationOutcome
sourceimpl Ord for TextValidationOutcome
impl Ord for TextValidationOutcome
sourcefn cmp(&self, other: &TextValidationOutcome) -> Ordering
fn cmp(&self, other: &TextValidationOutcome) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<TextValidationOutcome> for TextValidationOutcome
impl PartialEq<TextValidationOutcome> for TextValidationOutcome
sourcefn eq(&self, other: &TextValidationOutcome) -> bool
fn eq(&self, other: &TextValidationOutcome) -> bool
sourceimpl PartialOrd<TextValidationOutcome> for TextValidationOutcome
impl PartialOrd<TextValidationOutcome> for TextValidationOutcome
sourcefn partial_cmp(&self, other: &TextValidationOutcome) -> Option<Ordering>
fn partial_cmp(&self, other: &TextValidationOutcome) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more