Enum image::error::UnsupportedErrorKind
source · #[non_exhaustive]pub enum UnsupportedErrorKind {
Color(ExtendedColorType),
Format(ImageFormatHint),
GenericFeature(String),
}
Expand description
Details what feature is not supported.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Color(ExtendedColorType)
The required color type can not be handled.
Format(ImageFormatHint)
An image format is not supported.
GenericFeature(String)
Some feature specified by string. This is discouraged and is likely to get deprecated (but not removed).
Trait Implementations§
source§impl Clone for UnsupportedErrorKind
impl Clone for UnsupportedErrorKind
source§fn clone(&self) -> UnsupportedErrorKind
fn clone(&self) -> UnsupportedErrorKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UnsupportedErrorKind
impl Debug for UnsupportedErrorKind
source§impl Hash for UnsupportedErrorKind
impl Hash for UnsupportedErrorKind
source§impl PartialEq for UnsupportedErrorKind
impl PartialEq for UnsupportedErrorKind
impl StructuralPartialEq for UnsupportedErrorKind
Auto Trait Implementations§
impl Freeze for UnsupportedErrorKind
impl RefUnwindSafe for UnsupportedErrorKind
impl Send for UnsupportedErrorKind
impl Sync for UnsupportedErrorKind
impl Unpin for UnsupportedErrorKind
impl UnwindSafe for UnsupportedErrorKind
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)