[][src]Trait nannou::mesh::Colors

pub trait Colors {
    type Color;
    type Colors: Channel<Element = Self::Color>;
    fn colors(&self) -> &Self::Colors;
}

Meshes that contain a channel of colors.

Associated Types

type Color

The color type stored within the channel.

type Colors: Channel<Element = Self::Color>

The channel type containing colors.

Loading content...

Required methods

fn colors(&self) -> &Self::Colors

Borrow the color channel from the mesh.

Loading content...

Implementations on Foreign Types

impl<'a, M> Colors for &'a M where
    M: Colors
[src]

type Color = M::Color

type Colors = M::Colors

impl<'a, M> Colors for &'a mut M where
    M: Colors
[src]

type Color = M::Color

type Colors = M::Colors

impl<'a, M> Colors for Ref<'a, M> where
    M: Colors
[src]

type Color = M::Color

type Colors = M::Colors

impl<'a, M> Colors for RefMut<'a, M> where
    M: Colors
[src]

type Color = M::Color

type Colors = M::Colors

Loading content...

Implementors

impl<M, C> Colors for WithColors<M, C> where
    C: Channel
[src]

type Color = C::Element

type Colors = C

impl<M, I> Colors for WithIndices<M, I> where
    M: Colors
[src]

type Color = M::Color

type Colors = M::Colors

impl<M, N> Colors for WithNormals<M, N> where
    M: Colors
[src]

type Color = M::Color

type Colors = M::Colors

impl<M, T> Colors for WithTexCoords<M, T> where
    M: Colors
[src]

type Color = M::Color

type Colors = M::Colors

impl<S> Colors for Mesh<S>[src]

type Color = Color

type Colors = Colors

Loading content...