#[repr(usize)]
pub enum ScreenPixelFormat {
    Mono,
    RGB_233,
    RGB_565,
    RGB_888,
    ARGB_8888,
}

Variants

Mono

Pixels encoded as 1-bit, used for monochromatic displays

RGB_233

Pixels encoded as 2-bit red channel, 3-bit green channel, 3-bit blue channel.

RGB_565

Pixels encoded as 5-bit red channel, 6-bit green channel, 5-bit blue channel.

RGB_888

Pixels encoded as 8-bit red channel, 8-bit green channel, 8-bit blue channel.

ARGB_8888

Pixels encoded as 8-bit alpha channel, 8-bit red channel, 8-bit green channel, 8-bit blue channel.

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.