pub trait PushIndex {
type Index;
// Required method
fn push_index(&mut self, index: Self::Index);
// Provided method
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.
Required Associated Types§
Required Methods§
sourcefn 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§
sourcefn 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.
Object Safety§
This trait is not object safe.