[][src]Struct lyon_path::IdPolygon

pub struct IdPolygon<'l> {
    pub points: &'l [EndpointId],
    pub closed: bool,
}

A view over a sequence of endpoint IDs forming a polygon.

Fields

points: &'l [EndpointId]closed: bool

Implementations

impl<'l> IdPolygon<'l>[src]

pub fn iter(&self) -> IdPolygonIter<'l>

Notable traits for IdPolygonIter<'l>

impl<'l> Iterator for IdPolygonIter<'l> type Item = IdEvent;
[src]

pub fn event(&self, id: EventId) -> IdEvent[src]

Returns the event for a given event ID.

Auto Trait Implementations

impl<'l> RefUnwindSafe for IdPolygon<'l>[src]

impl<'l> Send for IdPolygon<'l>[src]

impl<'l> Sync for IdPolygon<'l>[src]

impl<'l> Unpin for IdPolygon<'l>[src]

impl<'l> UnwindSafe for IdPolygon<'l>[src]

Blanket Implementations

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> From<T> for T[src]

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

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.