Enum zune_hdr::HdrDecodeErrors
source · pub enum HdrDecodeErrors {
InvalidMagicBytes,
ParseError(ParseIntError),
UnsupportedOrientation(String, String),
TooLargeDimensions(&'static str, usize, usize),
Generic(&'static str),
TooSmallOutputArray(usize, usize),
}
Expand description
HDR decoding errors
Variants§
InvalidMagicBytes
Magic bytes do not start with ?#RADIANCE
or ?#RGBE
ParseError(ParseIntError)
The decoder could not convert string to int
UnsupportedOrientation(String, String)
The image contains an unsupported orientation
TooLargeDimensions(&'static str, usize, usize)
Too large dimensions for a given dimension
Generic(&'static str)
Generic message
TooSmallOutputArray(usize, usize)
The output array is too small to contain the whole image
Trait Implementations§
source§impl Debug for HdrDecodeErrors
impl Debug for HdrDecodeErrors
source§impl Display for HdrDecodeErrors
impl Display for HdrDecodeErrors
source§impl Error for HdrDecodeErrors
impl Error for HdrDecodeErrors
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ParseIntError> for HdrDecodeErrors
impl From<ParseIntError> for HdrDecodeErrors
source§fn from(value: ParseIntError) -> Self
fn from(value: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for HdrDecodeErrors
impl Send for HdrDecodeErrors
impl Sync for HdrDecodeErrors
impl Unpin for HdrDecodeErrors
impl UnwindSafe for HdrDecodeErrors
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