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

pub trait Vertices<S>: Sized {
    fn next(&mut self, data: &IntermediaryMesh<S>) -> Option<Vertex<S>>;

    fn into_iter(self, data: &IntermediaryMesh<S>) -> IterVertices<Self, S> { ... }
}

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

Required methods

fn next(&mut self, data: &IntermediaryMesh<S>) -> Option<Vertex<S>>

Return the next Vertex within the sequence.

Loading content...

Provided methods

Important traits for IterVertices<'a, V, S>
fn into_iter(self, data: &IntermediaryMesh<S>) -> IterVertices<Self, S>

Converts self and the given data into an iterator yielding vertices.

Loading content...

Implementors

impl<S> Vertices<S> for VerticesFromRanges where
    S: BaseFloat
[src]

Important traits for IterVertices<'a, V, S>
fn into_iter(self, data: &IntermediaryMesh<S>) -> IterVertices<Self, S>[src]

impl<S, I> Vertices<S> for I where
    I: Iterator<Item = Vertex<S>>, 
[src]

Important traits for IterVertices<'a, V, S>
fn into_iter(self, data: &IntermediaryMesh<S>) -> IterVertices<Self, S>[src]

Loading content...