Struct nannou::mesh::vertex::WithColor [−][src]
pub struct WithColor<V, C> { pub vertex: V, pub color: C, }
A vertex with a specified color.
Fields
vertex: V
color: C
Trait Implementations
impl<V: Copy, C: Copy> Copy for WithColor<V, C>
[src]
impl<V: Copy, C: Copy> Copy for WithColor<V, C>
impl<V: Clone, C: Clone> Clone for WithColor<V, C>
[src]
impl<V: Clone, C: Clone> Clone for WithColor<V, C>
fn clone(&self) -> WithColor<V, C>
[src]
fn clone(&self) -> WithColor<V, C>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<V: Debug, C: Debug> Debug for WithColor<V, C>
[src]
impl<V: Debug, C: Debug> Debug for WithColor<V, C>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<V: Default, C: Default> Default for WithColor<V, C>
[src]
impl<V: Default, C: Default> Default for WithColor<V, C>
impl<V: PartialEq, C: PartialEq> PartialEq for WithColor<V, C>
[src]
impl<V: PartialEq, C: PartialEq> PartialEq for WithColor<V, C>
fn eq(&self, other: &WithColor<V, C>) -> bool
[src]
fn eq(&self, other: &WithColor<V, C>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &WithColor<V, C>) -> bool
[src]
fn ne(&self, other: &WithColor<V, C>) -> bool
This method tests for !=
.
impl<S, V, C> ApplyTransform<S> for WithColor<V, C> where
V: ApplyTransform<S>,
S: BaseFloat,
[src]
impl<S, V, C> ApplyTransform<S> for WithColor<V, C> where
V: ApplyTransform<S>,
S: BaseFloat,
fn apply_transform(self, transform: &PreparedTransform<S>) -> Self
[src]
fn apply_transform(self, transform: &PreparedTransform<S>) -> Self
Apply the given transform and return the result.
impl<V, C> Deref for WithColor<V, C>
[src]
impl<V, C> Deref for WithColor<V, C>
type Target = V
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl<V, C> DerefMut for WithColor<V, C>
[src]
impl<V, C> DerefMut for WithColor<V, C>
impl<V, C> Vertex for WithColor<V, C> where
V: Vertex,
C: Clone + Copy + PartialEq,
[src]
impl<V, C> Vertex for WithColor<V, C> where
V: Vertex,
C: Clone + Copy + PartialEq,
impl<V, C> Vertex2d for WithColor<V, C> where
V: Vertex2d,
Self: Vertex<Scalar = V::Scalar>,
[src]
impl<V, C> Vertex2d for WithColor<V, C> where
V: Vertex2d,
Self: Vertex<Scalar = V::Scalar>,
impl<V, C> Vertex3d for WithColor<V, C> where
V: Vertex3d,
Self: Vertex<Scalar = V::Scalar>,
[src]
impl<V, C> Vertex3d for WithColor<V, C> where
V: Vertex3d,
Self: Vertex<Scalar = V::Scalar>,
impl<A, V, C> From<(A, C)> for WithColor<V, C> where
A: Into<V>,
[src]
impl<A, V, C> From<(A, C)> for WithColor<V, C> where
A: Into<V>,
impl<M, V, C> PushVertex<WithColor<V, C>> for WithColors<M, Vec<C>> where
M: PushVertex<V>,
[src]
impl<M, V, C> PushVertex<WithColor<V, C>> for WithColors<M, Vec<C>> where
M: PushVertex<V>,
fn push_vertex(&mut self, v: WithColor<V, C>)
[src]
fn push_vertex(&mut self, v: WithColor<V, C>)
Push the given vertex onto the mesh. Read more