Enum rustracer::error::HdrImageErr
source · pub enum HdrImageErr {
OutOfBounds((u32, u32), (u32, u32)),
InvalidPixelsSize(u32, u32),
InvalidPfmFileFormat(String),
PfmFileReadFailure(Error),
PfmFileWriteFailure(Error),
PfmIntParseFailure(ParseIntError, String),
PfmFloatParseFailure(ParseFloatError, String),
LdrFileWriteFailure(ImageError),
UnsupportedLdrFileFormat(String),
}
Expand description
Error enum for HdrImage
module.
Variants§
OutOfBounds((u32, u32), (u32, u32))
InvalidPixelsSize(u32, u32)
InvalidPfmFileFormat(String)
PfmFileReadFailure(Error)
PfmFileWriteFailure(Error)
PfmIntParseFailure(ParseIntError, String)
PfmFloatParseFailure(ParseFloatError, String)
LdrFileWriteFailure(ImageError)
UnsupportedLdrFileFormat(String)
Trait Implementations§
source§impl Debug for HdrImageErr
impl Debug for HdrImageErr
source§impl Display for HdrImageErr
impl Display for HdrImageErr
source§impl Error for HdrImageErr
impl Error for HdrImageErr
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()
Auto Trait Implementations§
impl !RefUnwindSafe for HdrImageErr
impl Send for HdrImageErr
impl Sync for HdrImageErr
impl Unpin for HdrImageErr
impl !UnwindSafe for HdrImageErr
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