pub enum DecodeErrorKind {
Show 14 variants
IO {
error: Error,
},
NoByteOrder,
NoVersion,
NoIFDAddress,
NoImage,
CannotFindTheTag {
tag: AnyTag,
},
UnsupportedIFDEntry {
entry: Entry,
reason: String,
},
UnsupportedMultipleData {
tag: AnyTag,
data: Vec<u32>,
},
UnsupportedData {
tag: AnyTag,
data: u32,
},
IncorrectBufferSize {
calc: usize,
sum: usize,
},
IncompatibleData {
photometric_interpretation: PhotometricInterpretation,
bits_per_sample: BitsPerSample,
},
NoData {
tag: AnyTag,
},
ExtraData {
tag: AnyTag,
data: Vec<u32>,
},
NoSupportDataType {
tag: AnyTag,
datatype: DataType,
count: usize,
},
}
Variants§
IO
NoByteOrder
NoVersion
NoIFDAddress
NoImage
CannotFindTheTag
UnsupportedIFDEntry
UnsupportedMultipleData
UnsupportedData
IncorrectBufferSize
IncompatibleData
NoData
ExtraData
NoSupportDataType
Trait Implementations§
Source§impl Debug for DecodeErrorKind
impl Debug for DecodeErrorKind
Source§impl Display for DecodeErrorKind
impl Display for DecodeErrorKind
Source§impl Fail for DecodeErrorKind
impl Fail for DecodeErrorKind
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl From<DecodeErrorKind> for DecodeError
impl From<DecodeErrorKind> for DecodeError
Source§fn from(kind: DecodeErrorKind) -> DecodeError
fn from(kind: DecodeErrorKind) -> DecodeError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DecodeErrorKind
impl !RefUnwindSafe for DecodeErrorKind
impl Send for DecodeErrorKind
impl Sync for DecodeErrorKind
impl Unpin for DecodeErrorKind
impl !UnwindSafe for DecodeErrorKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more