pub enum PathEl {
MoveTo(Point),
LineTo(Point),
QuadTo(Point, Point),
CurveTo(Point, Point, Point),
ClosePath,
}Expand description
A single element within a Path.
Variants§
MoveTo(Point)
Begins a new sub-path at the given point.
LineTo(Point)
Draws a straight line from the current point to the given point.
QuadTo(Point, Point)
Draws a quadratic Bezier curve with one control point and an endpoint.
CurveTo(Point, Point, Point)
Draws a cubic Bezier curve with two control points and an endpoint.
ClosePath
Closes the current sub-path by drawing a straight line back to its starting point.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathEl
impl RefUnwindSafe for PathEl
impl Send for PathEl
impl Sync for PathEl
impl Unpin for PathEl
impl UnsafeUnpin for PathEl
impl UnwindSafe for PathEl
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