Enum png::ColorType [] [src]

#[repr(u8)]
pub enum ColorType { Grayscale, RGB, Indexed, GrayscaleAlpha, RGBA, }

Variants

Methods

impl ColorType
[src]

Returns the number of samples used per pixel of ColorType

u8 -> Self. Temporary solution until Rust provides a canonical one.

Trait Implementations

impl<W: Write> Parameter<Encoder<W>> for ColorType
[src]

impl Debug for ColorType
[src]

Formats the value using the given formatter.

impl Clone for ColorType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ColorType
[src]

impl PartialEq for ColorType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ColorType
[src]