pub enum ImgEncodeErrors {
Generic(String),
GenericStatic(&'static str),
UnsupportedColorspace(ColorSpace, &'static [ColorSpace]),
ImageEncodeErrors(String),
NoEncoderForFormat(ImageFormat),
}Expand description
All errors possible during image encoding
Variants§
Generic(String)
GenericStatic(&'static str)
UnsupportedColorspace(ColorSpace, &'static [ColorSpace])
ImageEncodeErrors(String)
NoEncoderForFormat(ImageFormat)
Trait Implementations§
Source§impl Debug for ImgEncodeErrors
impl Debug for ImgEncodeErrors
Source§impl From<FarbFeldEncoderErrors> for ImgEncodeErrors
impl From<FarbFeldEncoderErrors> for ImgEncodeErrors
Source§fn from(value: FarbFeldEncoderErrors) -> Self
fn from(value: FarbFeldEncoderErrors) -> Self
Converts to this type from the input type.
Source§impl From<HdrEncodeErrors> for ImgEncodeErrors
impl From<HdrEncodeErrors> for ImgEncodeErrors
Source§fn from(value: HdrEncodeErrors) -> Self
fn from(value: HdrEncodeErrors) -> Self
Converts to this type from the input type.
Source§impl From<ImgEncodeErrors> for ImageErrors
impl From<ImgEncodeErrors> for ImageErrors
Source§fn from(from: ImgEncodeErrors) -> Self
fn from(from: ImgEncodeErrors) -> Self
Converts to this type from the input type.
Source§impl From<JxlEncodeErrors> for ImgEncodeErrors
impl From<JxlEncodeErrors> for ImgEncodeErrors
Source§fn from(value: JxlEncodeErrors) -> Self
fn from(value: JxlEncodeErrors) -> Self
Converts to this type from the input type.
Source§impl From<PPMEncodeErrors> for ImgEncodeErrors
Available on crate feature ppm only.
impl From<PPMEncodeErrors> for ImgEncodeErrors
Available on crate feature
ppm only.Source§fn from(error: PPMEncodeErrors) -> Self
fn from(error: PPMEncodeErrors) -> Self
Converts to this type from the input type.
Source§impl From<QoiEncodeErrors> for ImgEncodeErrors
impl From<QoiEncodeErrors> for ImgEncodeErrors
Source§fn from(error: QoiEncodeErrors) -> Self
fn from(error: QoiEncodeErrors) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ImgEncodeErrors
impl RefUnwindSafe for ImgEncodeErrors
impl Send for ImgEncodeErrors
impl Sync for ImgEncodeErrors
impl Unpin for ImgEncodeErrors
impl UnsafeUnpin for ImgEncodeErrors
impl UnwindSafe for ImgEncodeErrors
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