[][src]Struct nannou::draw::mesh::vertex::IterFromPoint2s

pub struct IterFromPoint2s<I, S = Default> { /* fields omitted */ }

A type that converts an iterator yielding 2D points to an iterator yielding Vertexs.

The z position for each vertex will be 0.0.

The given default_color is used to color every vertex.

The default value of (0.0, 0.0) is used for tex_coords.

Implementations

impl<I, S> IterFromPoint2s<I, S>[src]

pub fn new<P>(points: P, default_color: Color) -> Self where
    P: IntoIterator<IntoIter = I, Item = Point2<S>>,
    I: Iterator<Item = Point2<S>>, 
[src]

A type that converts an iterator yielding 2D points to an iterator yielding Vertexs.

The z position for each vertex will be 0.0.

The given default_color is used to color every vertex.

The default value of (0.0, 0.0) is used for tex_coords.

Trait Implementations

impl<I: Clone, S: Clone> Clone for IterFromPoint2s<I, S>[src]

impl<I: Debug, S: Debug> Debug for IterFromPoint2s<I, S>[src]

impl<I, S> Iterator for IterFromPoint2s<I, S> where
    I: Iterator<Item = Point2<S>>,
    S: BaseFloat
[src]

type Item = Vertex<S>

The type of the elements being iterated over.

Auto Trait Implementations

impl<I, S> RefUnwindSafe for IterFromPoint2s<I, S> where
    I: RefUnwindSafe,
    S: RefUnwindSafe

impl<I, S> Send for IterFromPoint2s<I, S> where
    I: Send,
    S: Send

impl<I, S> Sync for IterFromPoint2s<I, S> where
    I: Sync,
    S: Sync

impl<I, S> Unpin for IterFromPoint2s<I, S> where
    I: Unpin,
    S: Unpin

impl<I, S> UnwindSafe for IterFromPoint2s<I, S> where
    I: UnwindSafe,
    S: UnwindSafe

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[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> From<T> 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<T> ParallelBridge for T where
    T: Send + Iterator,
    <T as Iterator>::Item: Send
[src]

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<V, T> VZip<V> for T where
    V: MultiLane<T>,