pub enum ConvertError {
Decode(ImageError),
Size {
width: u32,
height: u32,
},
}Expand description
An image that the conversion cannot take.
Variants§
Decode(ImageError)
The image does not decode, its pixels need too much memory, or it does not encode.
Size
No scale fits both sides of the image in the limits.
Trait Implementations§
Source§impl Debug for ConvertError
impl Debug for ConvertError
Source§impl Display for ConvertError
impl Display for ConvertError
Source§impl From<ImageError> for ConvertError
impl From<ImageError> for ConvertError
Source§fn from(error: ImageError) -> Self
fn from(error: ImageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ConvertError
impl !UnwindSafe for ConvertError
impl Forget for ConvertError
impl Freeze for ConvertError
impl Move for ConvertError
impl Send for ConvertError
impl Sync for ConvertError
impl Unpin for ConvertError
impl UnsafeUnpin for ConvertError
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