[][src]Enum wasm_svg_graphics::figures::sub_path::SubPath

pub enum SubPath {
    BezierCurve(PointPointPoint),
    Line(Point),
}

Variants

BezierCurve(PointPointPoint)

(Control point 1, Control point 2, End point)

Line(Point)

(End Point)

Methods

impl SubPath[src]

pub fn new_line(end_point: Point) -> SubPath[src]

Creates new line with ending point at 'end_point'

pub fn new_bezier_curve(
    control_point1: Point,
    control_point2: Point,
    end_point: Point
) -> SubPath
[src]

Creates new bezier curve with control points 1 and 2 and ending point at 'end_point'

pub fn to_d_string(&self, translation: Point) -> String[src]

Returns its contribution to the d attribute

Trait Implementations

impl Hash for SubPath[src]

Auto Trait Implementations

impl RefUnwindSafe for SubPath

impl Send for SubPath

impl Sync for SubPath

impl Unpin for SubPath

impl UnwindSafe for SubPath

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, 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.