pub enum ShapePngError {
TooLarge {
width: u32,
height: u32,
},
Corrupt(String),
}Expand description
Why a Shape.png did not decode.
Variants§
TooLarge
A side over MAX_PNG_DIMENSION, or a decode over MAX_ENTRY_BYTES,
counted as TipImageError::TooLarge
describes.
Corrupt(String)
The bytes did not decode, or a PNG carries an eXIf chunk over 64 KiB before the image data.
Trait Implementations§
Source§impl Clone for ShapePngError
impl Clone for ShapePngError
Source§impl Debug for ShapePngError
impl Debug for ShapePngError
Source§impl Display for ShapePngError
impl Display for ShapePngError
impl Eq for ShapePngError
Source§impl Error for ShapePngError
impl Error for ShapePngError
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()
Source§impl PartialEq for ShapePngError
impl PartialEq for ShapePngError
impl StructuralPartialEq for ShapePngError
Auto Trait Implementations§
impl Freeze for ShapePngError
impl RefUnwindSafe for ShapePngError
impl Send for ShapePngError
impl Sync for ShapePngError
impl Unpin for ShapePngError
impl UnsafeUnpin for ShapePngError
impl UnwindSafe for ShapePngError
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.