[][src]Struct lyon_tessellation::FillAttributes

pub struct FillAttributes<'l> { /* fields omitted */ }

Extra vertex information from the FillTessellator, accessible when building vertices.

Methods

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

Important traits for VertexSourceIterator<'l>
pub fn sources(&self) -> VertexSourceIterator[src]

Return an iterator over the sources of the vertex.

pub fn as_endpoint_id(&self) -> Option<EndpointId>[src]

Returns the first endpoint that this vertex is on, if any.

This is meant to be used only in very simple cases where self-intersections, overlapping vertices and curves are unexpected. This will return None at self-intersections and between the endpoints of a flattened curve. If two endpoints are at the same position only one of them is returned.

See also: FillAttributes::sources.

pub fn interpolated_attributes(&mut self) -> &[f32][src]

Fetch or interpolate the custom attribute values at this vertex.

Auto Trait Implementations

impl<'l> !RefUnwindSafe for FillAttributes<'l>

impl<'l> !Send for FillAttributes<'l>

impl<'l> !Sync for FillAttributes<'l>

impl<'l> Unpin for FillAttributes<'l>

impl<'l> !UnwindSafe for FillAttributes<'l>

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.