Trait nannou::mesh::PushIndex [−][src]
pub trait PushIndex { type Index; fn push_index(&mut self, index: Self::Index); fn extend_indices<I>(&mut self, indices: I)
where
I: IntoIterator<Item = Self::Index>, { ... } }
Meshes that contain an Indices channel and can push new indices to it.
Associated Types
Loading content...Required methods
fn push_index(&mut self, index: Self::Index)
[src]
Push a new index onto the indices channel.
Provided methods
fn extend_indices<I>(&mut self, indices: I) where
I: IntoIterator<Item = Self::Index>,
[src]
I: IntoIterator<Item = Self::Index>,
Extend the Mesh’s Indices channel with the given indices.
Implementations on Foreign Types
impl<'a, M> PushIndex for &'a mut M where
M: PushIndex,
[src]
M: PushIndex,
type Index = M::Index
fn push_index(&mut self, index: Self::Index)
[src]
fn extend_indices<I>(&mut self, indices: I) where
I: IntoIterator<Item = Self::Index>,
[src]
I: IntoIterator<Item = Self::Index>,
impl<'a, M> PushIndex for RefMut<'a, M> where
M: PushIndex,
[src]
M: PushIndex,
type Index = M::Index
fn push_index(&mut self, index: Self::Index)
[src]
fn extend_indices<I>(&mut self, indices: I) where
I: IntoIterator<Item = Self::Index>,
[src]
I: IntoIterator<Item = Self::Index>,
Implementors
impl<M, C> PushIndex for WithColors<M, C> where
M: PushIndex,
[src]
M: PushIndex,
type Index = M::Index
fn push_index(&mut self, index: Self::Index)
[src]
fn extend_indices<I>(&mut self, indices: I) where
I: IntoIterator<Item = Self::Index>,
[src]
I: IntoIterator<Item = Self::Index>,
impl<M, I> PushIndex for WithIndices<M, Vec<I>>
[src]
type Index = I
fn push_index(&mut self, index: Self::Index)
[src]
fn extend_indices<It>(&mut self, indices: It) where
It: IntoIterator<Item = Self::Index>,
[src]
It: IntoIterator<Item = Self::Index>,
impl<M, N> PushIndex for WithNormals<M, N> where
M: PushIndex,
[src]
M: PushIndex,
type Index = M::Index
fn push_index(&mut self, index: M::Index)
[src]
fn extend_indices<I>(&mut self, indices: I) where
I: IntoIterator<Item = M::Index>,
[src]
I: IntoIterator<Item = M::Index>,
impl<M, T> PushIndex for WithTexCoords<M, T> where
M: PushIndex,
[src]
M: PushIndex,
type Index = M::Index
fn push_index(&mut self, index: Self::Index)
[src]
fn extend_indices<I>(&mut self, indices: I) where
I: IntoIterator<Item = Self::Index>,
[src]
I: IntoIterator<Item = Self::Index>,
impl<S> PushIndex for Mesh<S>
[src]
type Index = u32
fn push_index(&mut self, index: Self::Index)
[src]
fn extend_indices<I>(&mut self, indices: I) where
I: IntoIterator<Item = Self::Index>,
[src]
I: IntoIterator<Item = Self::Index>,