[][src]Trait nannou::draw::properties::Indices

pub trait Indices: Sized {
    fn next(&mut self, intermediary_indices: &[usize]) -> Option<usize>;

    fn min_index(&self) -> usize { ... }
fn into_iter(self, intermediary_indices: &[usize]) -> IterIndices<Self> { ... } }

Similar to the Iterator trait, but provides access to the IntermediaryMesh on each call to the next method.

Required methods

fn next(&mut self, intermediary_indices: &[usize]) -> Option<usize>

Return the next index within the sequence.

Loading content...

Provided methods

fn min_index(&self) -> usize

The minimum index referred to in the sequence. This is necessary for mapping indices into the intermediary mesh to indices into the draw's primary mesh.

By default, this is assumed to be 0.

Important traits for IterIndices<'a, I>
fn into_iter(self, intermediary_indices: &[usize]) -> IterIndices<Self>

Converts self and the given intermediary_indices into an iterator yielding indices.

Loading content...

Implementors

impl Indices for IndicesFromRange[src]

impl<A, B> Indices for IndicesChain<A, B> where
    A: Indices,
    B: Indices
[src]

impl<I> Indices for I where
    I: Iterator<Item = usize>, 
[src]

Loading content...