Enum zune_jpeg::errors::DecodeErrors
source · pub enum DecodeErrors {
}
Expand description
Common Decode errors
Variants§
Format(String)
Any other thing we do not know
FormatStatic(&'static str)
Any other thing we do not know but we don’t need to allocate space on the heap
IllegalMagicBytes(u16)
Illegal Magic Bytes
HuffmanDecode(String)
problems with the Huffman Tables in a Decoder file
ZeroError
Image has zero width
DqtError(String)
Discrete Quantization Tables error
SosError(String)
Start of scan errors
SofError(String)
Start of frame errors
Unsupported(UnsupportedSchemes)
UnsupportedImages
MCUError(String)
MCU errors
ExhaustedData
Exhausted data
LargeDimensions(usize)
Large image dimensions(Corrupted data)?
TooSmallOutput(usize, usize)
Too small output for size
Trait Implementations§
source§impl Clone for DecodeErrors
impl Clone for DecodeErrors
source§fn clone(&self) -> DecodeErrors
fn clone(&self) -> DecodeErrors
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DecodeErrors
impl Debug for DecodeErrors
source§impl Display for DecodeErrors
impl Display for DecodeErrors
source§impl Error for DecodeErrors
impl Error for DecodeErrors
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for DecodeErrors
impl RefUnwindSafe for DecodeErrors
impl Send for DecodeErrors
impl Sync for DecodeErrors
impl Unpin for DecodeErrors
impl UnwindSafe for DecodeErrors
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)