Struct nannou::mesh::vertex::WithColor[][src]

pub struct WithColor<V, C> {
    pub vertex: V,
    pub color: C,
}

A vertex with a specified color.

Fields

Trait Implementations

impl<V: Copy, C: Copy> Copy for WithColor<V, C>
[src]

impl<V: Clone, C: Clone> Clone for WithColor<V, C>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<V: Debug, C: Debug> Debug for WithColor<V, C>
[src]

Formats the value using the given formatter. Read more

impl<V: Default, C: Default> Default for WithColor<V, C>
[src]

Returns the "default value" for a type. Read more

impl<V: PartialEq, C: PartialEq> PartialEq for WithColor<V, C>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<S, V, C> ApplyTransform<S> for WithColor<V, C> where
    V: ApplyTransform<S>,
    S: BaseFloat
[src]

Apply the given transform and return the result.

impl<V, C> Deref for WithColor<V, C>
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<V, C> DerefMut for WithColor<V, C>
[src]

Mutably dereferences the value.

impl<V, C> Vertex for WithColor<V, C> where
    V: Vertex,
    C: Clone + Copy + PartialEq
[src]

The values used to describe the vertex position.

impl<V, C> Vertex2d for WithColor<V, C> where
    V: Vertex2d,
    Self: Vertex<Scalar = V::Scalar>, 
[src]

The x, y location of the vertex.

impl<V, C> Vertex3d for WithColor<V, C> where
    V: Vertex3d,
    Self: Vertex<Scalar = V::Scalar>, 
[src]

The x, y, z location of the vertex.

impl<M, V, C> PushVertex<WithColor<V, C>> for WithColors<M, Vec<C>> where
    M: PushVertex<V>, 
[src]

Push the given vertex onto the mesh. Read more

Auto Trait Implementations

impl<V, C> Send for WithColor<V, C> where
    C: Send,
    V: Send

impl<V, C> Sync for WithColor<V, C> where
    C: Sync,
    V: Sync