[][src]Trait lyon_path::AttributeStore

pub trait AttributeStore {
    pub fn get(&self, id: EndpointId) -> &[f32];
pub fn num_attributes(&self) -> usize; }

Interface for objects storing custom attributes associated with endpoints.

This interface can be implemented by path objects themselves or via external data structures.

Required methods

pub fn get(&self, id: EndpointId) -> &[f32][src]

Returns the endpoint's custom attributes as a slice of 32 bits floats.

The size of the slice must be equal to the result of num_attributes().

pub fn num_attributes(&self) -> usize[src]

Returns the number of float attributes per endpoint.

All endpoints must have the same number of attributes.

Loading content...

Implementations on Foreign Types

impl AttributeStore for ()[src]

Loading content...

Implementors

impl AttributeStore for Path[src]

impl<'l> AttributeStore for AttributeSlice<'l>[src]

impl<'l> AttributeStore for PathSlice<'l>[src]

Loading content...