pub struct PathDefBuilder { /* private fields */ }Expand description
SVG Path definition builder
let mut path = Path::def_builder();
path.precision(3);
path.move_to([5, 5]);
path.line((10.1, 20.2));
path.cubic(None, (20, 25), (50, 55));
path.close();
println!("{path}");Implementations§
Source§impl PathDefBuilder
impl PathDefBuilder
Sourcepub fn cubic<P, V>(&mut self, p1: Option<P>, p2: P, p: P) -> &mut Self
pub fn cubic<P, V>(&mut self, p1: Option<P>, p2: P, p: P) -> &mut Self
Draw a cubic Bézier curve
Trait Implementations§
Source§impl Clone for PathDefBuilder
impl Clone for PathDefBuilder
Source§fn clone(&self) -> PathDefBuilder
fn clone(&self) -> PathDefBuilder
Returns a duplicate 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 Display for PathDefBuilder
impl Display for PathDefBuilder
Source§impl From<PathDefBuilder> for String
impl From<PathDefBuilder> for String
Source§fn from(path: PathDefBuilder) -> Self
fn from(path: PathDefBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PathDefBuilder
impl RefUnwindSafe for PathDefBuilder
impl Send for PathDefBuilder
impl Sync for PathDefBuilder
impl Unpin for PathDefBuilder
impl UnwindSafe for PathDefBuilder
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