[][src]Struct uefi::proto::console::gop::BltPixel

#[repr(C)]pub struct BltPixel {
    pub blue: u8,
    pub green: u8,
    pub red: u8,
    // some fields omitted
}

Format of pixel data used for blitting.

This is a BGR 24-bit format with an 8-bit padding, to keep each pixel 32-bit in size.

Fields

blue: u8green: u8red: u8

Implementations

impl BltPixel[src]

pub fn new(red: u8, green: u8, blue: u8) -> Self[src]

Create a new pixel from RGB values.

Trait Implementations

impl Clone for BltPixel[src]

impl Copy for BltPixel[src]

impl Debug for BltPixel[src]

impl From<u32> for BltPixel[src]

Auto Trait Implementations

impl Send for BltPixel

impl Sync for BltPixel

impl Unpin for BltPixel

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.