[][src]Struct lyon_path::BuilderWithAttributes

pub struct BuilderWithAttributes { /* fields omitted */ }

Builds path objects with custom attributes.

Methods

impl BuilderWithAttributes[src]

pub fn new(num_attributes: usize) -> Self[src]

pub fn with_capacity(num_attributes: usize, points: usize, edges: usize) -> Self[src]

pub fn move_to(&mut self, to: Point, attributes: &[f32]) -> EndpointId[src]

pub fn line_to(&mut self, to: Point, attributes: &[f32]) -> EndpointId[src]

pub fn close(&mut self)[src]

pub fn quadratic_bezier_to(
    &mut self,
    ctrl: Point,
    to: Point,
    attributes: &[f32]
) -> EndpointId
[src]

pub fn cubic_bezier_to(
    &mut self,
    ctrl1: Point,
    ctrl2: Point,
    to: Point,
    attributes: &[f32]
) -> EndpointId
[src]

pub fn current_position(&self) -> Point[src]

pub fn build(self) -> Path[src]

Auto Trait Implementations

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.