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]
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>,
fn color_formats() -> Vec<PixelFormat>
[src]
fn color_formats() -> Vec<PixelFormat>
Turn a color slot into a list of pixel formats.
fn reify_textures<C, I>(
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
[src]
fn reify_textures<C, I>(
ctx: &mut C,
size: D::Size,
mipmaps: usize,
textures: &mut I
) -> Self where
C: GraphicsContext,
I: Iterator<Item = GLuint>,
Reify a list of raw textures into a color slot.
impl<A, B> Vertex for GTup<A, B> where
A: Vertex,
B: Vertex,
[src]
impl<A, B> Vertex for GTup<A, B> where
A: Vertex,
B: Vertex,
fn vertex_format() -> VertexFormat
[src]
fn vertex_format() -> VertexFormat