Struct luminance::gtup::GTup [] [src]

pub struct GTup<A, B>(pub A, pub B);

The generalized free tuple.

You can create arbitrary chains by nesting GTup types, or use the gtup! type macro.

Note: GTup is right-associative.

Examples

type Foo = GTup<i32, GTup<bool, f32>>;
type Bar = GTup<GTup<i32, bool>, f32>;
type Zoo = gtup![i32, bool, f32]; // Zoo == Foo

Trait Implementations

impl<L, D, P, B> ColorSlot<L, D> for GTup<Texture<L, D, P>, B> where
    L: Layerable,
    D: Dimensionable,
    D::Size: Copy,
    P: ColorPixel + RenderablePixel,
    B: ColorSlot<L, D>, 
[src]

[src]

Turn a color slot into a list of pixel formats.

[src]

Reify a list of raw textures into a color slot.

impl<A, B> Vertex for GTup<A, B> where
    A: Vertex,
    B: Vertex
[src]