[]Enum dicom_core::error::InvalidValueReadError

pub enum InvalidValueReadError {
    NonPrimitiveType,
    UnresolvedValueLength,
    InvalidToken(u8, &'static str),
    InvalidLength(usize, &'static str),
    ParseDateTime(u32, &'static str),
    DateTimeZone,
    Chrono(ParseError),
    ParseFloat(ParseFloatError),
    ParseInteger(ParseIntError),
    UnexpectedEndOfElement,
}

Triggered when a value parsing attempt fails.

Variants

NonPrimitiveType

The value cannot be read as a primitive value.

UnresolvedValueLength

The value's effective length cannot be resolved.

InvalidToken(u8, &'static str)

The value does not have the expected format.

InvalidLength(usize, &'static str)

The value does not have the expected length.

ParseDateTime(u32, &'static str)

Invalid date or time component.

DateTimeZone

Invalid or ambiguous combination of date with time.

Chrono(ParseError)

chrono error when parsing a date or time.

ParseFloat(ParseFloatError)

The value cannot be parsed to a floating point number.

ParseInteger(ParseIntError)

The value cannot be parsed to an integer.

UnexpectedEndOfElement

An attempt of reading more than the number of bytes in the length attribute was made.

Trait Implementations

impl From<InvalidValueReadError> for Error

impl From<ParseError> for InvalidValueReadError

impl From<ParseFloatError> for InvalidValueReadError

impl From<ParseIntError> for InvalidValueReadError

impl PartialEq<InvalidValueReadError> for InvalidValueReadError[src]

impl Clone for InvalidValueReadError[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for InvalidValueReadError[src]

impl Display for InvalidValueReadError

impl Debug for InvalidValueReadError[src]

impl Error for InvalidValueReadError

fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]

The lower-level source of this error, if any. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]