Struct forma::PathBuilder
pub struct PathBuilder { /* private fields */ }
Implementations§
§impl PathBuilder
impl PathBuilder
pub fn new() -> PathBuilder
pub fn move_to(&mut self, p: Point) -> &mut PathBuilder
pub fn line_to(&mut self, p: Point) -> &mut PathBuilder
pub fn quad_to(&mut self, p1: Point, p2: Point) -> &mut PathBuilder
pub fn cubic_to(&mut self, p1: Point, p2: Point, p3: Point) -> &mut PathBuilder
pub fn rat_quad_to( &mut self, p1: Point, p2: Point, weight: f32, ) -> &mut PathBuilder
pub fn rat_cubic_to( &mut self, p1: Point, p2: Point, p3: Point, w1: f32, w2: f32, ) -> &mut PathBuilder
pub fn build(&mut self) -> Path
Trait Implementations§
§impl Clone for PathBuilder
impl Clone for PathBuilder
§fn clone(&self) -> PathBuilder
fn clone(&self) -> PathBuilder
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 more§impl Debug for PathBuilder
impl Debug for PathBuilder
§impl Default for PathBuilder
impl Default for PathBuilder
§fn default() -> PathBuilder
fn default() -> PathBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PathBuilder
impl !RefUnwindSafe for PathBuilder
impl !Send for PathBuilder
impl !Sync for PathBuilder
impl Unpin for PathBuilder
impl !UnwindSafe for PathBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)