pub enum ImError {
IO(Error),
UnknownFormat,
ParserError(ImFormat),
}
Variants§
IO(Error)
If there was an IO error reading the image file this error is returend.
UnknownFormat
If the image format couldn’t be detected this error is returend.
ParserError(ImFormat)
If the image format was detected, but then something went wrong parsing the file this error is returned.
Trait Implementations§
source§impl Error for ImError
impl Error for ImError
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 !RefUnwindSafe for ImError
impl Send for ImError
impl Sync for ImError
impl Unpin for ImError
impl !UnwindSafe for ImError
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