pub enum ImageOperationsErrors {
WrongColorspace(ColorSpace, ColorSpace),
WrongComponents(usize, usize),
InvalidChannelLayout(&'static str),
UnsupportedType(&'static str, BitType),
Generic(&'static str),
GenericString(String),
}Expand description
Errors that may occur during image operations
Variants§
WrongColorspace(ColorSpace, ColorSpace)
Unexpected colorspace
WrongComponents(usize, usize)
Wrong number of components
InvalidChannelLayout(&'static str)
Channel layout does not match expected
UnsupportedType(&'static str, BitType)
Unsupported bit depth for an operation
The current operation does not support the bit depth
Generic(&'static str)
Generic errors
GenericString(String)
Generic errors which have more context
Trait Implementations§
Source§impl Debug for ImageOperationsErrors
impl Debug for ImageOperationsErrors
Source§impl From<ImageOperationsErrors> for ImageErrors
impl From<ImageOperationsErrors> for ImageErrors
Source§fn from(from: ImageOperationsErrors) -> Self
fn from(from: ImageOperationsErrors) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ImageOperationsErrors
impl RefUnwindSafe for ImageOperationsErrors
impl Send for ImageOperationsErrors
impl Sync for ImageOperationsErrors
impl Unpin for ImageOperationsErrors
impl UnsafeUnpin for ImageOperationsErrors
impl UnwindSafe for ImageOperationsErrors
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more