Struct nannou::mesh::WithColors [−][src]
pub struct WithColors<M, C> { /* fields omitted */ }
A Mesh
type with an added channel containing colors.
Trait Implementations
impl<M: Copy, C: Copy> Copy for WithColors<M, C>
[src]
impl<M: Copy, C: Copy> Copy for WithColors<M, C>
impl<M: Clone, C: Clone> Clone for WithColors<M, C>
[src]
impl<M: Clone, C: Clone> Clone for WithColors<M, C>
fn clone(&self) -> WithColors<M, C>
[src]
fn clone(&self) -> WithColors<M, 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)
Performs copy-assignment from source
. Read more
impl<M: Debug, C: Debug> Debug for WithColors<M, C>
[src]
impl<M: Debug, C: Debug> Debug for WithColors<M, 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<M: PartialEq, C: PartialEq> PartialEq for WithColors<M, C>
[src]
impl<M: PartialEq, C: PartialEq> PartialEq for WithColors<M, C>
fn eq(&self, other: &WithColors<M, C>) -> bool
[src]
fn eq(&self, other: &WithColors<M, C>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &WithColors<M, C>) -> bool
[src]
fn ne(&self, other: &WithColors<M, C>) -> bool
This method tests for !=
.
impl<M, C> GetVertex for WithColors<M, C> where
M: GetVertex,
C: Channel,
C::Element: Clone,
[src]
impl<M, C> GetVertex for WithColors<M, C> where
M: GetVertex,
C: Channel,
C::Element: Clone,
type Vertex = WithColor<M::Vertex, C::Element>
The vertex type representing all channels of data within the mesh at a single index.
fn get_vertex(&self, index: usize) -> Option<Self::Vertex>
[src]
fn get_vertex(&self, index: usize) -> Option<Self::Vertex>
Create a vertex containing all channel properties for the given index.
impl<M, C> Points for WithColors<M, C> where
M: Points,
[src]
impl<M, C> Points for WithColors<M, C> where
M: Points,
type Scalar = M::Scalar
The scalar value used for the vertex coordinates.
type Point = M::Point
The vertex type used to represent the location of a vertex.
type Points = M::Points
The channel type containing points.
fn points(&self) -> &Self::Points
[src]
fn points(&self) -> &Self::Points
Borrow the vertex channel from the mesh.
impl<M, C> Indices for WithColors<M, C> where
M: Indices,
[src]
impl<M, C> Indices for WithColors<M, C> where
M: Indices,
type Indices = M::Indices
The channel type containing indices.
fn indices(&self) -> &Self::Indices
[src]
fn indices(&self) -> &Self::Indices
Borrow the index channel from the mesh.
impl<M, C> Colors for WithColors<M, C> where
C: Channel,
[src]
impl<M, C> Colors for WithColors<M, C> where
C: Channel,
type Color = C::Element
The color type stored within the channel.
type Colors = C
The channel type containing colors.
fn colors(&self) -> &Self::Colors
[src]
fn colors(&self) -> &Self::Colors
Borrow the color channel from the mesh.
impl<M, C> TexCoords for WithColors<M, C> where
M: TexCoords,
[src]
impl<M, C> TexCoords for WithColors<M, C> where
M: TexCoords,
type TexCoordScalar = M::TexCoordScalar
The scalar value used for the texture coordinates.
type TexCoords = M::TexCoords
The channel type containing texture coordinates.
fn tex_coords(&self) -> &Self::TexCoords
[src]
fn tex_coords(&self) -> &Self::TexCoords
Borrow the texture coordinate channel from the mesh.
impl<M, C> Normals for WithColors<M, C> where
M: Normals,
M::Point: EuclideanSpace,
[src]
impl<M, C> Normals for WithColors<M, C> where
M: Normals,
M::Point: EuclideanSpace,
type Normals = M::Normals
The channel type containing vertex normals.
fn normals(&self) -> &Self::Normals
[src]
fn normals(&self) -> &Self::Normals
Borrow the normal channel from the mesh.
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
impl<M, C> PushIndex for WithColors<M, C> where
M: PushIndex,
[src]
impl<M, C> PushIndex for WithColors<M, C> where
M: PushIndex,
fn push_index(&mut self, index: usize)
[src]
fn push_index(&mut self, index: usize)
Push a new index onto the indices channel.
fn extend_indices<I>(&mut self, indices: I) where
I: IntoIterator<Item = usize>,
[src]
fn extend_indices<I>(&mut self, indices: I) where
I: IntoIterator<Item = usize>,
Extend the Mesh's Indices channel with the given indices.
impl<M, C> ClearIndices for WithColors<M, C> where
M: ClearIndices,
[src]
impl<M, C> ClearIndices for WithColors<M, C> where
M: ClearIndices,
fn clear_indices(&mut self)
[src]
fn clear_indices(&mut self)
Clear all indices from the mesh.
impl<M, C> ClearVertices for WithColors<M, Vec<C>> where
M: ClearVertices,
[src]
impl<M, C> ClearVertices for WithColors<M, Vec<C>> where
M: ClearVertices,
fn clear_vertices(&mut self)
[src]
fn clear_vertices(&mut self)
Clear all vertices from the mesh.
impl<M, C> Default for WithColors<M, C> where
M: Default,
C: Default,
[src]
impl<M, C> Default for WithColors<M, C> where
M: Default,
C: Default,
impl<M, C> Deref for WithColors<M, C>
[src]
impl<M, C> Deref for WithColors<M, C>
type Target = M
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl<M, C> DerefMut for WithColors<M, C>
[src]
impl<M, C> DerefMut for WithColors<M, C>
Auto Trait Implementations
impl<M, C> Send for WithColors<M, C> where
C: Send,
M: Send,
impl<M, C> Send for WithColors<M, C> where
C: Send,
M: Send,
impl<M, C> Sync for WithColors<M, C> where
C: Sync,
M: Sync,
impl<M, C> Sync for WithColors<M, C> where
C: Sync,
M: Sync,