[][src]Enum svg::node::element::path::Command

pub enum Command {
    Move(PositionParameters),
    Line(PositionParameters),
    HorizontalLine(PositionParameters),
    VerticalLine(PositionParameters),
    QuadraticCurve(PositionParameters),
    SmoothQuadraticCurve(PositionParameters),
    CubicCurve(PositionParameters),
    SmoothCubicCurve(PositionParameters),
    EllipticalArc(PositionParameters),
    Close,
}

A command of a data attribute.

Variants

Move(PositionParameters)

Establish a new current point.

Line(PositionParameters)

Draw straight lines.

HorizontalLine(PositionParameters)

Draw horizontal lines.

VerticalLine(PositionParameters)

Draw vertical lines.

QuadraticCurve(PositionParameters)

Draw a quadratic Bézier curve.

SmoothQuadraticCurve(PositionParameters)

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(PositionParameters)

Draw a cubic Bézier curve.

SmoothCubicCurve(PositionParameters)

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(PositionParameters)

Draw an elliptical arc.

Close

End the current subpath.

Trait Implementations

impl From<Command> for String[src]

impl Clone for Command[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Command[src]

Auto Trait Implementations

impl Send for Command

impl Sync for Command

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.