Enum png::ColorType [] [src]

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

Variants

Methods

impl ColorType
[src]

[src]

Returns the number of samples used per pixel of ColorType

[src]

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

Trait Implementations

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

[src]

impl Debug for ColorType
[src]

[src]

Formats the value using the given formatter.

impl Clone for ColorType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for ColorType
[src]

impl PartialEq for ColorType
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for ColorType
[src]