Enum dicom_core::value::deserialize::Error [−][src]
#[non_exhaustive]
pub enum Error {
UnexpectedEndOfElement {
backtrace: Backtrace,
},
InvalidDate {
backtrace: Backtrace,
},
InvalidTime {
backtrace: Backtrace,
},
InvalidDateTime {
source: PartialValuesError,
},
InvalidDateTimeZone {
backtrace: Backtrace,
},
FractionDelimiter {
value: u8,
backtrace: Backtrace,
},
InvalidNumberLength {
len: usize,
backtrace: Backtrace,
},
InvalidNumberToken {
value: u8,
backtrace: Backtrace,
},
InvalidTimeZoneSignToken {
value: u8,
backtrace: Backtrace,
},
IncompleteValue {
component: DateComponent,
backtrace: Backtrace,
},
InvalidComponent {
source: PartialValuesError,
},
PartialValue {
source: PartialValuesError,
},
}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.
Fields of UnexpectedEndOfElement
backtrace: BacktraceFields of InvalidDate
backtrace: BacktraceFields of InvalidTime
backtrace: BacktraceFields of InvalidDateTime
source: PartialValuesErrorFields of InvalidDateTimeZone
backtrace: BacktraceFields of IncompleteValue
component: DateComponentbacktrace: BacktraceFields of InvalidComponent
source: PartialValuesErrorFields of PartialValue
source: PartialValuesErrorTrait 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