Expand description
An enumeration over supported color types and their bit depths
Variants
Gray(u8)
Pixel is grayscale
RGB(u8)
Pixel contains R, G and B channels
Palette(u8)
Pixel is an index into a color palette
GrayA(u8)
Pixel is grayscale with an alpha channel
RGBA(u8)
Pixel is RGB with an alpha channel
CMYK(u8)
Pixel is CMYK
Trait Implementations
impl Copy for ColorType
impl Eq for ColorType
impl StructuralEq for ColorType
impl StructuralPartialEq for ColorType
Auto Trait Implementations
impl RefUnwindSafe for ColorType
impl Send for ColorType
impl Sync for ColorType
impl Unpin for ColorType
impl UnwindSafe for ColorType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more