Enum imagesize::ImageError
source · Expand description
An Error type used in failure cases.
Variants
NotSupported(String)
Used when the given data is not a supported format.
CorruptedImage(String)
Used when the image has an invalid format.
IoError(Error)
Used when an IoError occurs when trying to read the given data.
Trait Implementations
sourceimpl Debug for ImageError
impl Debug for ImageError
sourceimpl From<Error> for ImageError
impl From<Error> for ImageError
sourcefn from(err: Error) -> ImageError
fn from(err: Error) -> ImageError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for ImageError
impl Send for ImageError
impl Sync for ImageError
impl Unpin for ImageError
impl !UnwindSafe for ImageError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more