Struct nannou::mesh::WithIndices [−][src]
pub struct WithIndices<M, I> { /* fields omitted */ }
A mesh type with an added channel containing indices describing the edges between vertices.
Trait Implementations
impl<M: Copy, I: Copy> Copy for WithIndices<M, I>
[src]
impl<M: Copy, I: Copy> Copy for WithIndices<M, I>
impl<M: Clone, I: Clone> Clone for WithIndices<M, I>
[src]
impl<M: Clone, I: Clone> Clone for WithIndices<M, I>
fn clone(&self) -> WithIndices<M, I>
[src]
fn clone(&self) -> WithIndices<M, I>
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, I: Debug> Debug for WithIndices<M, I>
[src]
impl<M: Debug, I: Debug> Debug for WithIndices<M, I>
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, I: PartialEq> PartialEq for WithIndices<M, I>
[src]
impl<M: PartialEq, I: PartialEq> PartialEq for WithIndices<M, I>
fn eq(&self, other: &WithIndices<M, I>) -> bool
[src]
fn eq(&self, other: &WithIndices<M, I>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &WithIndices<M, I>) -> bool
[src]
fn ne(&self, other: &WithIndices<M, I>) -> bool
This method tests for !=
.
impl<M, I> GetVertex for WithIndices<M, I> where
M: GetVertex,
[src]
impl<M, I> GetVertex for WithIndices<M, I> where
M: GetVertex,
type Vertex = M::Vertex
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, I> Points for WithIndices<M, I> where
M: Points,
[src]
impl<M, I> Points for WithIndices<M, I> 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, I> Indices for WithIndices<M, I> where
I: Channel<Element = usize>,
[src]
impl<M, I> Indices for WithIndices<M, I> where
I: Channel<Element = usize>,
type Indices = I
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, I> Colors for WithIndices<M, I> where
M: Colors,
[src]
impl<M, I> Colors for WithIndices<M, I> where
M: Colors,
type Color = M::Color
The color type stored within the channel.
type Colors = M::Colors
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, I> TexCoords for WithIndices<M, I> where
M: TexCoords,
[src]
impl<M, I> TexCoords for WithIndices<M, I> 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, I> Normals for WithIndices<M, I> where
M: Normals,
M::Point: EuclideanSpace,
[src]
impl<M, I> Normals for WithIndices<M, I> 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> PushVertex<V> for WithIndices<M, Vec<usize>> where
M: PushVertex<V>,
[src]
impl<M, V> PushVertex<V> for WithIndices<M, Vec<usize>> where
M: PushVertex<V>,
fn push_vertex(&mut self, v: V)
[src]
fn push_vertex(&mut self, v: V)
Push the given vertex onto the mesh. Read more
impl<M> PushIndex for WithIndices<M, Vec<usize>>
[src]
impl<M> PushIndex for WithIndices<M, Vec<usize>>
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> ClearIndices for WithIndices<M, Vec<usize>>
[src]
impl<M> ClearIndices for WithIndices<M, Vec<usize>>
fn clear_indices(&mut self)
[src]
fn clear_indices(&mut self)
Clear all indices from the mesh.
impl<M> ClearVertices for WithIndices<M, Vec<usize>> where
M: ClearVertices,
[src]
impl<M> ClearVertices for WithIndices<M, Vec<usize>> where
M: ClearVertices,
fn clear_vertices(&mut self)
[src]
fn clear_vertices(&mut self)
Clear all vertices from the mesh.
impl<M, I> Default for WithIndices<M, I> where
M: Default,
I: Default,
[src]
impl<M, I> Default for WithIndices<M, I> where
M: Default,
I: Default,
impl<M, I> Deref for WithIndices<M, I>
[src]
impl<M, I> Deref for WithIndices<M, I>
type Target = M
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl<M, I> DerefMut for WithIndices<M, I>
[src]
impl<M, I> DerefMut for WithIndices<M, I>
Auto Trait Implementations
impl<M, I> Send for WithIndices<M, I> where
I: Send,
M: Send,
impl<M, I> Send for WithIndices<M, I> where
I: Send,
M: Send,
impl<M, I> Sync for WithIndices<M, I> where
I: Sync,
M: Sync,
impl<M, I> Sync for WithIndices<M, I> where
I: Sync,
M: Sync,