pub enum PathSeg {
Move(Point),
Line(Point),
Quad(Point, Point),
Cubic(Point, Point, Point),
Close,
}Expand description
One step of a Path. Points are absolute, in the canvas’s coordinate space.
Variants§
Move(Point)
Start a new contour at this point.
Line(Point)
Quad(Point, Point)
Quadratic bezier: one control point, then the end point.
Cubic(Point, Point, Point)
Cubic bezier: two control points, then the end point.
Close
Close the current contour back to its Move.
Trait Implementations§
impl Copy for PathSeg
impl StructuralPartialEq for PathSeg
Auto Trait Implementations§
impl Freeze for PathSeg
impl RefUnwindSafe for PathSeg
impl Send for PathSeg
impl Sync for PathSeg
impl Unpin for PathSeg
impl UnsafeUnpin for PathSeg
impl UnwindSafe for PathSeg
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