[][src]Struct storm::color::RGBA8

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

Simple RGBA8 color type to represent colors.

Fields

r: u8g: u8b: u8a: u8

Methods

impl RGBA8[src]

pub fn new(red: f32, green: f32, blue: f32, alpha: f32) -> RGBA8[src]

pub const fn new_raw(red: u8, green: u8, blue: u8, alpha: u8) -> RGBA8[src]

Trait Implementations

impl PartialEq<RGBA8> for RGBA8[src]

impl Clone for RGBA8[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for RGBA8[src]

impl Into<Vector4<f32>> for RGBA8[src]

impl Copy for RGBA8[src]

impl Debug for RGBA8[src]

Auto Trait Implementations

impl Unpin for RGBA8

impl Sync for RGBA8

impl Send for RGBA8

impl RefUnwindSafe for RGBA8

impl UnwindSafe for RGBA8

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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.

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]