[][src]Struct valora::forms::Polygon

pub struct Polygon { /* fields omitted */ }

Methods

impl Polygon[src]

pub fn vertices<'a>(
    &'a self
) -> impl DoubleEndedIterator<Item = P2> + Clone + 'a
[src]

Returns an iterator over the polygon's vertices.

pub fn vertices_mut<'a>(
    &'a mut self
) -> impl DoubleEndedIterator<Item = &'a mut P2> + 'a
[src]

Returns an iterator over unique references to the polgyon's vertices.

pub fn vertices_with_neighbors<'a>(
    &'a self
) -> impl Iterator<Item = (P2, P2, P2)> + 'a
[src]

Returns an iterator over each vertex in the form (left neighbor, vertex, right neighbor).

Trait Implementations

impl Clone for Polygon[src]

impl Debug for Polygon[src]

impl<I> From<I> for Polygon where
    I: Iterator<Item = P2>, 
[src]

impl FromIterator<Point2D<f32, UnknownUnit>> for Polygon[src]

impl Paint for Polygon[src]

impl<'_> Paint for &'_ Polygon[src]

impl PartialEq<Polygon> for Polygon[src]

impl StructuralPartialEq for Polygon[src]

impl Subdivide for Polygon[src]

impl Translate for Polygon[src]

Auto Trait Implementations

impl RefUnwindSafe for Polygon

impl Send for Polygon

impl Sync for Polygon

impl Unpin for Polygon

impl UnwindSafe for Polygon

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<P> Paint for P where
    P: Iterator<Item = PathEvent> + Clone
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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>,