pub enum ImageErrorKind {
Unsupported,
Damaged,
TooLarge,
NotFound,
OutOfMemory,
Other,
}Expand description
The kind of an image’s failure, which an app words for its user and acts on.
Variants§
Unsupported
A format the system does not decode or encode, or pixels in a layout it does not read.
Damaged
The bytes are of a format the system reads, and are not a whole image of it.
TooLarge
The image is larger than the system decodes it at into that memory; asked for at a maximum size, it may decode.
NotFound
No file at the path.
OutOfMemory
More memory than the system has left for a hardware buffer, or than the platform lets the app hold.
Other
Anything else the system reports.
Trait Implementations§
Source§impl Clone for ImageErrorKind
impl Clone for ImageErrorKind
impl Copy for ImageErrorKind
Source§impl Debug for ImageErrorKind
impl Debug for ImageErrorKind
impl Eq for ImageErrorKind
Source§impl PartialEq for ImageErrorKind
impl PartialEq for ImageErrorKind
impl StructuralPartialEq for ImageErrorKind
Auto Trait Implementations§
impl Forget for ImageErrorKind
impl Freeze for ImageErrorKind
impl Move for ImageErrorKind
impl RefUnwindSafe for ImageErrorKind
impl Send for ImageErrorKind
impl Sync for ImageErrorKind
impl Unpin for ImageErrorKind
impl UnsafeUnpin for ImageErrorKind
impl UnwindSafe for ImageErrorKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.