Struct lyon_path::path_buffer::BuilderWithAttributes [−][src]
pub struct BuilderWithAttributes<'l> { /* fields omitted */ }
A Builder that appends a path to an existing PathBuffer, with custom attributes.
Implementations
impl<'l> BuilderWithAttributes<'l>
[src]
pub fn new(buffer: &'l mut PathBuffer, num_attributes: usize) -> Self
[src]
pub fn build(self) -> usize
[src]
pub fn begin(&mut self, at: Point, attributes: &[f32]) -> EndpointId
[src]
pub fn end(&mut self, close: bool)
[src]
pub fn line_to(&mut self, to: Point, attributes: &[f32]) -> EndpointId
[src]
pub fn quadratic_bezier_to(
&mut self,
ctrl: Point,
to: Point,
attributes: &[f32]
) -> EndpointId
[src]
&mut self,
ctrl: Point,
to: Point,
attributes: &[f32]
) -> EndpointId
pub fn cubic_bezier_to(
&mut self,
ctrl1: Point,
ctrl2: Point,
to: Point,
attributes: &[f32]
) -> EndpointId
[src]
&mut self,
ctrl1: Point,
ctrl2: Point,
to: Point,
attributes: &[f32]
) -> EndpointId
pub fn reserve(&mut self, endpoints: usize, ctrl_points: usize)
[src]
Auto Trait Implementations
impl<'l> RefUnwindSafe for BuilderWithAttributes<'l>
impl<'l> Send for BuilderWithAttributes<'l>
impl<'l> Sync for BuilderWithAttributes<'l>
impl<'l> Unpin for BuilderWithAttributes<'l>
impl<'l> !UnwindSafe for BuilderWithAttributes<'l>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,