Struct luminance::chain::Chain [] [src]

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

The generalized free tuple.

You can create arbitrary chains by nesting Chain types, or use the chain! type macro if your compiler allows you to.

Examples

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

Trait Implementations

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

Turn a color slot into a list of pixel formats.

Reify a list of raw textures into a color slot.

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