[][src]Struct rgx::core::Bgra8

#[repr(C)]
pub struct Bgra8 {
    pub b: u8,
    pub g: u8,
    pub r: u8,
    pub a: u8,
}

A BGRA color, used when dealing with framebuffers.

Fields

b: u8g: u8r: u8a: u8

Methods

impl Bgra8[src]

pub const TRANSPARENT: Self[src]

pub const fn new(b: u8, g: u8, r: u8, a: u8) -> Self[src]

pub fn align<T: AsRef<[u8]>>(bytes: &T) -> &[Self][src]

Trait Implementations

impl From<Rgba8> for Bgra8[src]

impl Into<Rgba8> for Bgra8[src]

impl Clone for Bgra8[src]

impl Copy for Bgra8[src]

impl Eq for Bgra8[src]

impl PartialEq<Bgra8> for Bgra8[src]

impl Debug for Bgra8[src]

impl StructuralPartialEq for Bgra8[src]

impl StructuralEq for Bgra8[src]

Auto Trait Implementations

impl Send for Bgra8

impl Sync for Bgra8

impl Unpin for Bgra8

impl UnwindSafe for Bgra8

impl RefUnwindSafe for Bgra8

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = !

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.

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

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

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