Trait nannou::mesh::PushIndex [−][src]
pub trait PushIndex { fn push_index(&mut self, index: usize); fn extend_indices<I>(&mut self, indices: I)
where
I: IntoIterator<Item = usize>, { ... } }
Meshes that contain an Indices channel and can push new indices to it.
Required Methods
fn push_index(&mut self, index: usize)
Push a new index onto the indices channel.
Provided Methods
fn extend_indices<I>(&mut self, indices: I) where
I: IntoIterator<Item = usize>,
I: IntoIterator<Item = usize>,
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]
impl<'a, M> PushIndex for &'a mut M where
M: PushIndex,
fn push_index(&mut self, index: usize)
[src]
fn push_index(&mut self, index: usize)
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>,
impl<'a, M> PushIndex for RefMut<'a, M> where
M: PushIndex,
[src]
impl<'a, M> PushIndex for RefMut<'a, M> where
M: PushIndex,
fn push_index(&mut self, index: usize)
[src]
fn push_index(&mut self, index: usize)
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>,
Implementors
impl<S> PushIndex for Mesh<S>
impl<M> PushIndex for WithIndices<M, Vec<usize>>
impl<M, C> PushIndex for WithColors<M, C> where
M: PushIndex,impl<M, T, S> PushIndex for WithTexCoords<M, T, S> where
M: PushIndex,impl<M, N> PushIndex for WithNormals<M, N> where
M: PushIndex,