Enum greenglas::transformer::TransformerError
source · pub enum TransformerError {
InvalidShape,
InvalidRgbPixels,
InvalidRgbaPixels,
InvalidLumaPixels,
InvalidLumaAlphaPixels,
}
Expand description
The Transformer Errors
Variants§
InvalidShape
When the speficied shape capacitiy differs from the actual capacity of the numeric Vec
InvalidRgbPixels
When The Image Pixel Buffer can’t be converted to a RGB Image
InvalidRgbaPixels
When The Image Pixel Buffer can’t be converted to a RGBA Image
InvalidLumaPixels
When The Image Pixel Buffer can’t be converted to a greyscale Image
InvalidLumaAlphaPixels
When The Image Pixel Buffer can’t be converted to a greyscale Alpha Image
Trait Implementations§
source§impl Clone for TransformerError
impl Clone for TransformerError
source§fn clone(&self) -> TransformerError
fn clone(&self) -> TransformerError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TransformerError
impl Debug for TransformerError
impl Copy for TransformerError
Auto Trait Implementations§
impl RefUnwindSafe for TransformerError
impl Send for TransformerError
impl Sync for TransformerError
impl Unpin for TransformerError
impl UnwindSafe for TransformerError
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