pub enum PolyCode {
    MoveTo,
    LineTo,
    Curve3,
    Curve4,
}
Expand description

Defines the poly-curve code

Reference: Matplotlib

Variants

MoveTo

Move to coordinate (first point)

Matplotlib: Pick up the pen and move to the given vertex.

LineTo

Segment (next point, need 2 points)

Matplotlib: Draw a line from the current position to the given vertex.

Curve3

Quadratic Bezier (next point, need 3 control points with the first and last points on the curve)

Matplotlib: Draw a quadratic Bezier curve from the current position, with the given control point, to the given end point.

Curve4

Cubic Bezier (next point, need 4 control points with the first and last points on the curve)

Matplotlib: Draw a cubic Bezier curve from the current position, with the given control points, to the given end point.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.