Struct nannou::mesh::WithIndices
source · pub struct WithIndices<M, I> { /* private fields */ }
Expand description
A mesh type with an added channel containing indices describing the edges between vertices.
Trait Implementations§
source§impl<M, I> ClearIndices for WithIndices<M, Vec<I>>
impl<M, I> ClearIndices for WithIndices<M, Vec<I>>
source§fn clear_indices(&mut self)
fn clear_indices(&mut self)
Clear all indices from the mesh.
source§impl<M, I> ClearVertices for WithIndices<M, Vec<I>>where
M: ClearVertices,
impl<M, I> ClearVertices for WithIndices<M, Vec<I>>where
M: ClearVertices,
source§fn clear_vertices(&mut self)
fn clear_vertices(&mut self)
Clear all vertices from the mesh.
source§impl<M, I> Clone for WithIndices<M, I>
impl<M, I> Clone for WithIndices<M, I>
source§fn clone(&self) -> WithIndices<M, I>
fn clone(&self) -> WithIndices<M, I>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<M, I> Colors for WithIndices<M, I>where
M: Colors,
impl<M, I> Colors for WithIndices<M, I>where
M: Colors,
source§impl<M, I> Debug for WithIndices<M, I>
impl<M, I> Debug for WithIndices<M, I>
source§impl<M, I> Default for WithIndices<M, I>
impl<M, I> Default for WithIndices<M, I>
source§fn default() -> WithIndices<M, I>
fn default() -> WithIndices<M, I>
Returns the “default value” for a type. Read more
source§impl<M, I> Deref for WithIndices<M, I>
impl<M, I> Deref for WithIndices<M, I>
source§impl<M, I> DerefMut for WithIndices<M, I>
impl<M, I> DerefMut for WithIndices<M, I>
source§impl<'a, M, I> ExtendFromSlice<'a> for WithIndices<M, Vec<I>>where
M: ExtendFromSlice<'a>,
I: 'a + Clone,
impl<'a, M, I> ExtendFromSlice<'a> for WithIndices<M, Vec<I>>where
M: ExtendFromSlice<'a>,
I: 'a + Clone,
§type Slice = (&'a [I], <M as ExtendFromSlice<'a>>::Slice)
type Slice = (&'a [I], <M as ExtendFromSlice<'a>>::Slice)
The slice type expected via the mesh. Read more
source§fn extend_from_slice(
&mut self,
slice: <WithIndices<M, Vec<I>> as ExtendFromSlice<'a>>::Slice
)
fn extend_from_slice( &mut self, slice: <WithIndices<M, Vec<I>> as ExtendFromSlice<'a>>::Slice )
Extend the mesh.
source§impl<M, I, Ix> GetVertex<Ix> for WithIndices<M, I>where
M: GetVertex<Ix>,
impl<M, I, Ix> GetVertex<Ix> for WithIndices<M, I>where
M: GetVertex<Ix>,
source§impl<M, I> Indices for WithIndices<M, I>where
I: Channel,
impl<M, I> Indices for WithIndices<M, I>where
I: Channel,
source§impl<M, I> Normals for WithIndices<M, I>where
M: Normals,
impl<M, I> Normals for WithIndices<M, I>where
M: Normals,
source§impl<M, I> PartialEq for WithIndices<M, I>
impl<M, I> PartialEq for WithIndices<M, I>
source§fn eq(&self, other: &WithIndices<M, I>) -> bool
fn eq(&self, other: &WithIndices<M, I>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<M, I> Points for WithIndices<M, I>where
M: Points,
impl<M, I> Points for WithIndices<M, I>where
M: Points,
source§impl<M, I> PushIndex for WithIndices<M, Vec<I>>
impl<M, I> PushIndex for WithIndices<M, Vec<I>>
source§fn push_index(&mut self, index: <WithIndices<M, Vec<I>> as PushIndex>::Index)
fn push_index(&mut self, index: <WithIndices<M, Vec<I>> as PushIndex>::Index)
Push a new index onto the indices channel.
source§fn extend_indices<It>(&mut self, indices: It)
fn extend_indices<It>(&mut self, indices: It)
Extend the Mesh’s Indices channel with the given indices.
source§impl<M, I, V> PushVertex<V> for WithIndices<M, Vec<I>>where
M: PushVertex<V>,
impl<M, I, V> PushVertex<V> for WithIndices<M, Vec<I>>where
M: PushVertex<V>,
source§fn push_vertex(&mut self, v: V)
fn push_vertex(&mut self, v: V)
Push the given vertex onto the mesh. Read more
source§impl<M, I> TexCoords for WithIndices<M, I>where
M: TexCoords,
impl<M, I> TexCoords for WithIndices<M, I>where
M: TexCoords,
source§fn tex_coords(&self) -> &<WithIndices<M, I> as TexCoords>::TexCoords
fn tex_coords(&self) -> &<WithIndices<M, I> as TexCoords>::TexCoords
Borrow the texture coordinate channel from the mesh.
impl<M, I> Copy for WithIndices<M, I>
impl<M, I> StructuralPartialEq for WithIndices<M, I>
Auto Trait Implementations§
impl<M, I> RefUnwindSafe for WithIndices<M, I>where
I: RefUnwindSafe,
M: RefUnwindSafe,
impl<M, I> Send for WithIndices<M, I>
impl<M, I> Sync for WithIndices<M, I>
impl<M, I> Unpin for WithIndices<M, I>
impl<M, I> UnwindSafe for WithIndices<M, I>where
I: UnwindSafe,
M: UnwindSafe,
Blanket Implementations§
source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Clear for Twhere
T: ClearIndices + ClearVertices,
impl<T> Clear for Twhere
T: ClearIndices + ClearVertices,
source§impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
source§fn convert_into(self) -> U
fn convert_into(self) -> U
Convert into T with values clamped to the color defined bounds Read more
source§fn convert_unclamped_into(self) -> U
fn convert_unclamped_into(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
source§fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined range,
otherwise an
OutOfBounds
error is returned which contains the unclamped color. Read more