[][src]Enum kernel::hil::screen::ScreenPixelFormat

#[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

impl ScreenPixelFormat[src]

pub fn get_bits_per_pixel(&self) -> usize[src]

Trait Implementations

impl Clone for ScreenPixelFormat[src]

impl Copy for ScreenPixelFormat[src]

impl PartialEq<ScreenPixelFormat> for ScreenPixelFormat[src]

impl StructuralPartialEq for ScreenPixelFormat[src]

Auto Trait Implementations

impl Send for ScreenPixelFormat

impl Sync for ScreenPixelFormat

impl Unpin for ScreenPixelFormat

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.