pub enum HdrEncodeErrors {
UnsupportedColorspace(ColorSpace),
WrongInputSize(usize, usize),
Static(&'static str),
IoErrors(ZByteIoError),
}Expand description
HDR encoding errrors
Variants§
UnsupportedColorspace(ColorSpace)
The colorspace provided by user is not supported by HDR
WrongInputSize(usize, usize)
The input size was expected to be of a certain size but isn’t
Static(&'static str)
Generic message
IoErrors(ZByteIoError)
Trait Implementations§
Source§impl Debug for HdrEncodeErrors
impl Debug for HdrEncodeErrors
Source§impl Display for HdrEncodeErrors
impl Display for HdrEncodeErrors
Source§impl Error for HdrEncodeErrors
impl Error for HdrEncodeErrors
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl From<&'static str> for HdrEncodeErrors
impl From<&'static str> for HdrEncodeErrors
Source§fn from(value: &'static str) -> HdrEncodeErrors
fn from(value: &'static str) -> HdrEncodeErrors
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<ZByteIoError> for HdrEncodeErrors
impl From<ZByteIoError> for HdrEncodeErrors
Source§fn from(value: ZByteIoError) -> HdrEncodeErrors
fn from(value: ZByteIoError) -> HdrEncodeErrors
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for HdrEncodeErrors
impl !UnwindSafe for HdrEncodeErrors
impl Freeze for HdrEncodeErrors
impl Send for HdrEncodeErrors
impl Sync for HdrEncodeErrors
impl Unpin for HdrEncodeErrors
impl UnsafeUnpin for HdrEncodeErrors
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