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<C, L, D, P, B> ColorSlot<C, L, D> for Chain<Slot<C, L, D, P>, B> where C: HasFramebuffer + HasTexture, L: Layerable, D: Dimensionable, D::Size: Copy, P: ColorPixel, B: ColorSlot<C, L, D>
[src]

fn color_formats() -> Vec<PixelFormat>

Turn a color slot into a list of pixel formats.

fn reify_textures(size: D::Size, mipmaps: u32, textures: &mut Vec<C::ATexture>) -> Self

Reify a list of raw textures into a color slot.

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