#[repr(u8)]
pub enum ColorType {
Grayscale,
Rgb,
Indexed,
GrayscaleAlpha,
Rgba,
}
Expand description
Describes how a pixel is encoded.
Variants
Grayscale
1 grayscale sample.
Rgb
1 red sample, 1 green sample, 1 blue sample.
Indexed
1 sample for the palette index.
GrayscaleAlpha
1 grayscale sample, then 1 alpha sample.
Rgba
1 red sample, 1 green sample, 1 blue sample, and finally, 1 alpha sample.
Implementations
Trait Implementations
sourceimpl PartialEq<ColorType> for ColorType
impl PartialEq<ColorType> for ColorType
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