pub struct PathBuilder { /* private fields */ }
Implementations§
Source§impl PathBuilder
impl PathBuilder
pub fn new() -> Self
pub fn move_to(&mut self, p: Point) -> &mut Self
pub fn line_to(&mut self, p: Point) -> &mut Self
pub fn quad_to(&mut self, p1: Point, p2: Point) -> &mut Self
pub fn cubic_to(&mut self, p1: Point, p2: Point, p3: Point) -> &mut Self
pub fn rat_quad_to(&mut self, p1: Point, p2: Point, weight: f32) -> &mut Self
pub fn rat_cubic_to( &mut self, p1: Point, p2: Point, p3: Point, w1: f32, w2: f32, ) -> &mut Self
pub fn build(&mut self) -> Path
Trait Implementations§
Source§impl Clone for PathBuilder
impl Clone for PathBuilder
Source§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 moreSource§impl Debug for PathBuilder
impl Debug for PathBuilder
Source§impl Default for PathBuilder
impl Default for PathBuilder
Source§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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)