Struct lyon_path::commands::PathCommandsBuilder
source · pub struct PathCommandsBuilder { /* private fields */ }
Expand description
Builds path commands.
See PathCommands
.
Implementations§
source§impl PathCommandsBuilder
impl PathCommandsBuilder
sourcepub fn with_capacity(cap: usize) -> Self
pub fn with_capacity(cap: usize) -> Self
Creates a pre-allocated builder.
pub fn begin(&mut self, to: EndpointId) -> EventId
pub fn end(&mut self, close: bool) -> Option<EventId>
pub fn line_to(&mut self, to: EndpointId) -> EventId
pub fn quadratic_bezier_to( &mut self, ctrl: ControlPointId, to: EndpointId ) -> EventId
pub fn cubic_bezier_to( &mut self, ctrl1: ControlPointId, ctrl2: ControlPointId, to: EndpointId ) -> EventId
sourcepub fn build(self) -> PathCommands
pub fn build(self) -> PathCommands
Consumes the builder and returns path commands.
Trait Implementations§
source§impl Clone for PathCommandsBuilder
impl Clone for PathCommandsBuilder
source§fn clone(&self) -> PathCommandsBuilder
fn clone(&self) -> PathCommandsBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for PathCommandsBuilder
impl Send for PathCommandsBuilder
impl Sync for PathCommandsBuilder
impl Unpin for PathCommandsBuilder
impl UnwindSafe for PathCommandsBuilder
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