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>,
{ ... }
}
Expand description
Meshes that contain an Indices channel and can push new indices to it.
Associated Types
Required methods
fn push_index(&mut self, index: Self::Index)
fn push_index(&mut self, index: Self::Index)
Push a new index onto the indices channel.
Provided methods
fn extend_indices<I>(&mut self, indices: I) where
I: IntoIterator<Item = Self::Index>,
fn extend_indices<I>(&mut self, indices: I) where
I: IntoIterator<Item = Self::Index>,
Extend the Mesh’s Indices channel with the given indices.