[][src]Struct sunrise_vi::vbe::VBEColor

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

A rgb color

Fields

b: u8g: u8r: u8a: u8

Implementations

impl VBEColor[src]

Some colors for the vbe

pub const fn rgb(r: u8, g: u8, b: u8) -> VBEColor[src]

Creates a VBEColor from the given red/green/blue component. Alpha is set to 0.

Trait Implementations

impl Clone for VBEColor[src]

impl Copy for VBEColor[src]

impl Debug for VBEColor[src]

Auto Trait Implementations

impl RefUnwindSafe for VBEColor

impl Send for VBEColor

impl Sync for VBEColor

impl Unpin for VBEColor

impl UnwindSafe for VBEColor

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> SizedIPCBuffer for 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 = 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.