Enum zune_jpegxl::JxlEncodeErrors
source · pub enum JxlEncodeErrors {
ZeroDimension(&'static str),
UnsupportedColorspace(ColorSpace),
UnsupportedDepth(BitDepth),
TooLargeDimensions(usize),
LengthMismatch(usize, usize),
Generic(&'static str),
}
Expand description
Errors that may arise during encoding
Variants§
ZeroDimension(&'static str)
One of the dimensions is less than 2
UnsupportedColorspace(ColorSpace)
The colorspace of the image isn’t supported by the library
UnsupportedDepth(BitDepth)
Image depth isn’t supported by the library
TooLargeDimensions(usize)
A given width or height is too big to be encoded
LengthMismatch(usize, usize)
Mismatch in length expected vs what was found
Generic(&'static str)
Generic error
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for JxlEncodeErrors
impl Send for JxlEncodeErrors
impl Sync for JxlEncodeErrors
impl Unpin for JxlEncodeErrors
impl UnwindSafe for JxlEncodeErrors
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