Enum svg::node::element::path::Command
[−]
[src]
pub enum Command { Move(Position, Parameters), Line(Position, Parameters), HorizontalLine(Position, Parameters), VerticalLine(Position, Parameters), QuadraticCurve(Position, Parameters), SmoothQuadraticCurve(Position, Parameters), CubicCurve(Position, Parameters), SmoothCubicCurve(Position, Parameters), EllipticalArc(Position, Parameters), Close, }
A command of a data attribute.
Variants
Move(Position, Parameters)
Establish a new current point.
Line(Position, Parameters)
Draw straight lines.
HorizontalLine(Position, Parameters)
Draw horizontal lines.
VerticalLine(Position, Parameters)
Draw vertical lines.
QuadraticCurve(Position, Parameters)
Draw a quadratic Bézier curve.
SmoothQuadraticCurve(Position, Parameters)
Draw a quadratic Bézier curve assuming the control point to be the reflection of the control point on the previous command relative to the current point.
CubicCurve(Position, Parameters)
Draw a cubic Bézier curve.
SmoothCubicCurve(Position, Parameters)
Draw a cubic Bézier curve assuming the first control point to be the reflection of the second control point on the previous command relative to the current point.
EllipticalArc(Position, Parameters)
Draw an elliptical arc.
Close
End the current subpath.
Trait Implementations
impl Clone for Command
[src]
impl Clone for Command
fn clone(&self) -> Command
[src]
fn clone(&self) -> Command
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl From<Command> for String
[src]
impl From<Command> for String