pub enum FarbFeldEncoderErrors {
TooLargeDimensions(usize),
UnsupportedBitDepth(BitDepth),
UnsupportedColorSpace(ColorSpace),
TooShortInput(usize, usize),
}
Expand description
Errors possible during encoding
Variants§
TooLargeDimensions(usize)
Too large dimensions, above 2^32. Farbfeld uses 4 bytes for width and height, if image cannot fit in it then it’s undefined
UnsupportedBitDepth(BitDepth)
Unsupported bit depth for Farbfeld. Farbfeld only supports 16 bit images any other image format is not supported
UnsupportedColorSpace(ColorSpace)
Unsupported colorspace for Farbfeld. Farbfeld only supports RGBA images
TooShortInput(usize, usize)
Too short of an input buffer, the buffer size is not same as expected buffer size
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for FarbFeldEncoderErrors
impl Send for FarbFeldEncoderErrors
impl Sync for FarbFeldEncoderErrors
impl Unpin for FarbFeldEncoderErrors
impl UnwindSafe for FarbFeldEncoderErrors
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