[][src]Struct geng_core::prelude::Color

#[repr(C)]pub struct Color<T> {
    pub r: T,
    pub g: T,
    pub b: T,
    pub a: T,
}

Fields

r: Tg: Tb: Ta: T

Implementations

impl<T> Color<T> where
    T: ColorComponent
[src]

pub const WHITE: Color<T>[src]

pub const BLACK: Color<T>[src]

pub const GRAY: Color<T>[src]

pub const TRANSPARENT_WHITE: Color<T>[src]

pub const TRANSPARENT_BLACK: Color<T>[src]

pub const RED: Color<T>[src]

pub const GREEN: Color<T>[src]

pub const BLUE: Color<T>[src]

pub const CYAN: Color<T>[src]

pub const MAGENTA: Color<T>[src]

pub const YELLOW: Color<T>[src]

impl<T> Color<T> where
    T: ColorComponent
[src]

pub fn rgb(r: T, g: T, b: T) -> Color<T>[src]

pub fn rgba(r: T, g: T, b: T, a: T) -> Color<T>[src]

pub fn convert<U>(self) -> Color<U> where
    U: ColorComponent
[src]

Trait Implementations

impl<T> ApproxEq for Color<T> where
    T: ApproxEq + ColorComponent
[src]

impl AsUniform for Color<f32>[src]

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

impl<T> Copy for Color<T> where
    T: Copy
[src]

impl<T> Debug for Color<T> where
    T: Debug
[src]

impl<T> Deref for Color<T> where
    T: ColorComponent
[src]

type Target = [T; 4]

The resulting type after dereferencing.

impl<T> DerefMut for Color<T> where
    T: ColorComponent
[src]

impl<'de, T> Deserialize<'de> for Color<T> where
    T: Deserialize<'de>, 
[src]

impl<T> Display for Color<T> where
    T: ColorComponent
[src]

impl<T> Eq for Color<T> where
    T: ColorComponent + Eq
[src]

impl<T> PartialEq<Color<T>> for Color<T> where
    T: ColorComponent + Eq
[src]

impl RenderbufferPixel for Color<f32>[src]

impl<T> Schematic for Color<T> where
    T: Schematic + 'static, 
[src]

impl<T> Serialize for Color<T> where
    T: Serialize
[src]

impl TexturePixel for Color<f32>[src]

impl<T> Trans for Color<T> where
    T: Trans
[src]

impl VertexAttribute for Color<f32>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Color<T> where
    T: RefUnwindSafe

impl<T> Send for Color<T> where
    T: Send

impl<T> Sync for Color<T> where
    T: Sync

impl<T> Unpin for Color<T> where
    T: Unpin

impl<T> UnwindSafe for Color<T> where
    T: UnwindSafe

Blanket Implementations

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

impl<T> ApproxEq for T where
    T: Float
[src]

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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

impl<T> SetParameter for T

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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> Uniform for T where
    T: AsUniform
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,