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, }
Expand description
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.
End the current subpath.
Trait Implementations
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more