Enum rasterize::SvgPathCmd[][src]

pub enum SvgPathCmd {
    MoveTo(Point),
    LineTo(Point),
    QuadTo(PointPoint),
    CubicTo(PointPointPoint),
    ArcTo {
        radii: Point,
        x_axis_rot: Scalar,
        large: bool,
        sweep: bool,
        dst: Point,
    },
    Close(Point),
}

Possible SVG path commands

Variants

MoveTo(Point)
LineTo(Point)
QuadTo(PointPoint)
CubicTo(PointPointPoint)
ArcTo
Show fields

Fields of ArcTo

radii: Pointx_axis_rot: Scalarlarge: boolsweep: booldst: Point
Close(Point)

Implementations

impl SvgPathCmd[src]

pub fn dst(&self) -> Point[src]

Get destination point of the SVG command

pub fn apply(&self, builder: &mut PathBuilder)[src]

Apply SVG command to path builder

Trait Implementations

impl Clone for SvgPathCmd[src]

impl Copy for SvgPathCmd[src]

impl Debug for SvgPathCmd[src]

impl PartialEq<SvgPathCmd> for SvgPathCmd[src]

impl StructuralPartialEq for SvgPathCmd[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.