Struct lyon_path::path_buffer::BuilderWithAttributes
source · pub struct BuilderWithAttributes<'l> { /* private fields */ }
Expand description
A Builder that appends a path to an existing PathBuffer, with custom attributes.
Implementations§
source§impl<'l> BuilderWithAttributes<'l>
impl<'l> BuilderWithAttributes<'l>
pub fn new(buffer: &'l mut PathBuffer, num_attributes: usize) -> Self
pub fn build(self) -> usize
pub fn begin(&mut self, at: Point, attributes: &[f32]) -> EndpointId
pub fn end(&mut self, close: bool)
pub fn line_to(&mut self, to: Point, attributes: &[f32]) -> EndpointId
pub fn quadratic_bezier_to( &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
pub fn reserve(&mut self, endpoints: usize, ctrl_points: usize)
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more