pub enum TipImageError {
Decode(String),
TooLarge {
width: u32,
height: u32,
},
}Variants§
Decode(String)
The bytes did not decode, or a PNG carries an eXIf chunk over 64 KiB before the image data.
TooLarge
A side over MAX_IMPORT_DIMENSION, or a decode over
MAX_IMPORT_DECODED_BYTES: the image in its own pixel format, plus
the DCT coefficients of a progressive JPEG or of a baseline JPEG whose
first scan leaves out a component. The decoder’s other buffers are not
counted: up to a few hundred KiB at any width, more for wide images,
whose row buffers grow with the width. Neither is a PNG’s eXIf chunk of
at most 64 KiB, which the decoder holds twice, up to 128 KiB. A JPEG’s
metadata segments cost nothing: zune-jpeg skips them without a copy.
Trait Implementations§
Source§impl Debug for TipImageError
impl Debug for TipImageError
Source§impl Display for TipImageError
impl Display for TipImageError
Source§impl Error for TipImageError
impl Error for TipImageError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 TipImageError
impl RefUnwindSafe for TipImageError
impl Send for TipImageError
impl Sync for TipImageError
impl Unpin for TipImageError
impl UnsafeUnpin for TipImageError
impl UnwindSafe for TipImageError
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