Struct nannou::mesh::Vertices[][src]

pub struct Vertices<M> { /* fields omitted */ }

An iterator yielding vertices in the order specified via the mesh’s Indices channel.

Requires that the mesh implements Indices and GetVertex.

Returns None when a vertex has been yielded for every index in the Indices channel.

Panics if the Indices channel produces an index that is out of bounds of the mesh’s vertices.

Implementations

impl<M> Vertices<M> where
    M: Indices
[src]

pub fn index_range(self, range: Range<usize>) -> Self[src]

Specify the range of vertex indices to yield vertices from.

pub fn triangles<I>(self) -> Triangles<M> where
    M: Indices<Index = I> + GetVertex<I>,
    I: Copy
[src]

Convert this iterator yielding vertices into an iterator yielding triangles for every three vertices yielded.

Trait Implementations

impl<M: Clone> Clone for Vertices<M>[src]

impl<M: Debug> Debug for Vertices<M>[src]

impl<M, I> DoubleEndedIterator for Vertices<M> where
    M: Indices<Index = I> + GetVertex<I>,
    I: Copy
[src]

impl<M, I> ExactSizeIterator for Vertices<M> where
    M: Indices<Index = I> + GetVertex<I>,
    I: Copy
[src]

impl<M, I> Iterator for Vertices<M> where
    M: Indices<Index = I> + GetVertex<I>,
    I: Copy
[src]

type Item = M::Vertex

The type of the elements being iterated over.

Auto Trait Implementations

impl<M> RefUnwindSafe for Vertices<M> where
    M: RefUnwindSafe

impl<M> Send for Vertices<M> where
    M: Send

impl<M> Sync for Vertices<M> where
    M: Sync

impl<M> Unpin for Vertices<M> where
    M: Unpin

impl<M> UnwindSafe for Vertices<M> where
    M: UnwindSafe

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    T: Component + Float,
    D: AdaptFrom<S, Swp, Dwp, T>,
    Swp: WhitePoint,
    Dwp: WhitePoint
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

impl<T> Downcast<T> for T

impl<N, E, I> ElementIterator<N, E> for I where
    I: Iterator<Item = Element<N, E>> + ?Sized
[src]

impl<N, E, I> ElementIterator<N, E> for I where
    I: Iterator<Item = Element<N, E>> + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<Iter> PathIterator for Iter where
    Iter: Iterator<Item = Event<Point2D<f32, UnknownUnit>, Point2D<f32, UnknownUnit>>>, 

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,