pub enum Command {
MoveTo(Point),
LineTo(Point),
CurveTo(Point, Point, Point),
QuadTo(Point, Point),
Close,
}
Expand description
Path command.
Variants§
MoveTo(Point)
Begins a new subpath at the specified point.
LineTo(Point)
A straight line from the previous point to the specified point.
CurveTo(Point, Point, Point)
A cubic bezier curve from the previous point to the final point with two intermediate control points.
QuadTo(Point, Point)
A quadratic curve from the previous point to the final point with one intermediate control point.
Close
Closes a subpath, connecting the final point to the initial point.
Implementations§
Trait Implementations§
source§impl PartialEq for Command
impl PartialEq for Command
impl Copy for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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