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

pub struct Polygon { /* fields omitted */ }


impl Polygon[src]

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

Returns an iterator over the polygon's vertices.

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

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

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

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

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<P> Paint for P where
    P: Iterator<Item = PathEvent> + Clone

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

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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