#[repr(u8)]pub enum ColorType {
Greyscale = 0,
Truecolor = 2,
IndexedColor = 3,
GreyscaleAlpha = 4,
TruecolorAlpha = 6,
}
Expand description
PNG color types.
Variants§
Greyscale = 0
Single brightness channel.
Truecolor = 2
Red, green, and blue channels.
IndexedColor = 3
Single channel of palette indices.
GreyscaleAlpha = 4
Brightness and alpha channels.
TruecolorAlpha = 6
Red, green, blue, and alpha channels.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ColorType
impl RefUnwindSafe for ColorType
impl Send for ColorType
impl Sync for ColorType
impl Unpin for ColorType
impl UnwindSafe for ColorType
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