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: Clone, C: Clone> Clone for WithColors<M, C>
[src]
fn clone(&self) -> WithColors<M, C>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<M: Debug, C: Debug> Debug for WithColors<M, C>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<M: PartialEq, C: PartialEq> PartialEq for WithColors<M, C>
[src]
fn eq(&self, __arg_0: &WithColors<M, C>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &WithColors<M, C>) -> bool
[src]
This method tests for !=
.
impl<M, C> GetVertex for WithColors<M, C> where
M: GetVertex,
C: Channel,
C::Element: Clone,
[src]
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]
Create a vertex containing all channel properties for the given index.
impl<M, C> Points for WithColors<M, C> where
M: Points,
[src]
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]
Borrow the vertex channel from the mesh.
impl<M, C> Indices for WithColors<M, C> where
M: Indices,
[src]
M: Indices,
type Indices = M::Indices
The channel type containing indices.
fn indices(&self) -> &Self::Indices
[src]
Borrow the index channel from the mesh.
impl<M, C> Colors for WithColors<M, C> where
C: Channel,
[src]
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]
Borrow the color channel from the mesh.
impl<M, C> TexCoords for WithColors<M, C> where
M: TexCoords,
[src]
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]
Borrow the texture coordinate channel from the mesh.
impl<M, C> Normals for WithColors<M, C> where
M: Normals,
M::Point: EuclideanSpace,
[src]
M: Normals,
M::Point: EuclideanSpace,
type Normals = M::Normals
The channel type containing vertex normals.
fn normals(&self) -> &Self::Normals
[src]
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]
M: PushVertex<V>,
fn push_vertex(&mut self, v: WithColor<V, C>)
[src]
Push the given vertex onto the mesh. Read more
impl<M, C> PushIndex for WithColors<M, C> where
M: PushIndex,
[src]
M: PushIndex,
fn push_index(&mut self, index: usize)
[src]
Push a new index onto the indices channel.
fn extend_indices<I>(&mut self, indices: I) where
I: IntoIterator<Item = usize>,
[src]
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]
M: ClearIndices,
fn clear_indices(&mut self)
[src]
Clear all indices from the mesh.
impl<M, C> ClearVertices for WithColors<M, Vec<C>> where
M: ClearVertices,
[src]
M: ClearVertices,
fn clear_vertices(&mut self)
[src]
Clear all vertices from the mesh.
impl<M, C> Default for WithColors<M, C> where
M: Default,
C: Default,
[src]
M: Default,
C: Default,
impl<M, C> Deref for WithColors<M, C>
[src]
type Target = M
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.
impl<M, C> DerefMut for WithColors<M, C>
[src]
Auto Trait Implementations
impl<M, C> Send for WithColors<M, C> where
C: Send,
M: Send,
C: Send,
M: Send,
impl<M, C> Sync for WithColors<M, C> where
C: Sync,
M: Sync,
C: Sync,
M: Sync,