Enum oxipng::colors::BitDepth [] [src]

pub enum BitDepth {
    One,
    Two,
    Four,
    Eight,
    Sixteen,
}

The number of bits to be used per channel per pixel

Variants

One bit per channel per pixel

Two bits per channel per pixel

Four bits per channel per pixel

Eight bits per channel per pixel

Sixteen bits per channel per pixel

Methods

impl BitDepth
[src]

Retrieve the number of bits per channel per pixel as a u8

Parse a number of bits per channel per pixel into a BitDepth

Trait Implementations

impl Debug for BitDepth
[src]

Formats the value using the given formatter.

impl PartialEq for BitDepth
[src]

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

This method tests for !=.

impl Clone for BitDepth
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for BitDepth
[src]

impl Display for BitDepth
[src]

Formats the value using the given formatter. Read more