Enum dicom_core::value::InvalidValueReadError [−][src]
#[non_exhaustive]
pub enum InvalidValueReadError {
Show 15 variants
NonPrimitiveType {
backtrace: Backtrace,
},
DateTimeZone {
backtrace: Backtrace,
},
ParseFloat {
backtrace: Backtrace,
source: ParseFloatError,
},
ParseInteger {
backtrace: Backtrace,
source: ParseIntError,
},
UnexpectedEndOfElement {},
NarrowConvert {
value: String,
backtrace: Backtrace,
},
ParseDate {
source: Error,
},
ParseTime {
source: Error,
},
ParseDateTime {
source: Error,
},
IntoDicomDate {
source: Error,
},
IntoDicomTime {
source: Error,
},
IntoDicomDateTime {
source: Error,
},
ParseDateRange {
source: Error,
},
ParseTimeRange {
source: Error,
},
ParseDateTimeRange {
source: Error,
},
}Expand description
Triggered when a value reading attempt fails.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Attempted to retrieve a complex value as primitive.
Fields of NonPrimitiveType
backtrace: BacktraceInvalid or ambiguous combination of date with time.
Fields of DateTimeZone
backtrace: BacktraceThe value cannot be parsed to a floating point number.
Fields of ParseFloat
backtrace: Backtracesource: ParseFloatErrorThe value cannot be parsed to an integer.
Fields of ParseInteger
backtrace: Backtracesource: ParseIntErrorAn attempt of reading more than the number of bytes in the length attribute was made.
Fields of UnexpectedEndOfElement
The value cannot be converted to the target type requested.
Fields of ParseDate
source: ErrorFields of ParseTime
source: ErrorFields of ParseDateTime
source: ErrorFields of IntoDicomDate
source: ErrorFields of IntoDicomTime
source: ErrorFields of IntoDicomDateTime
source: ErrorFields of ParseDateRange
source: ErrorFields of ParseTimeRange
source: ErrorFields of ParseDateTimeRange
source: ErrorTrait Implementations
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more