Struct lyon_svg::path_utils::PathSerializer[][src]

pub struct PathSerializer { /* fields omitted */ }
Expand description

An SvgPathBuilder that builds a String representation of the path using the SVG syntax.

No effort is put into making the serializer fast or make the output compact. Intended primarily for debugging purposes.

Implementations

Trait Implementations

The type of object that is created by this builder.

Builds a path object and resets the builder so that it can be used again.

Start a new sub-path at the given position. Read more

Ends the current sub-path by connecting it back to its initial point. Read more

Adds a line segment to the current sub-path. Read more

Adds a quadratic bézier segment to the current sub-path. Read more

Adds a cubic bézier segment to the current sub-path. Read more

Equivalent to move_to in relative coordinates. Read more

Equivalent to line_to in relative coordinates. Read more

Equivalent to quadratic_bezier_to in relative coordinates. Read more

Equivalent to cubic_bezier_to in relative coordinates. Read more

Equivalent to cubic_bezier_to with implicit first control point. Read more

Equivalent to smooth_cubic_bezier_to in relative coordinates. Read more

Equivalent to quadratic_bezier_to with implicit control point. Read more

Equivalent to smooth_quadratic_bezier_to in relative coordinates. Read more

Adds an horizontal line segment. Read more

Adds an horizontal line segment in relative coordinates. Read more

Adds a vertical line segment. Read more

Adds a vertical line segment in relative coordinates. Read more

Adds an elliptical arc. Read more

Equivalent to arc_to in relative coordinates. Read more

Hints at the builder that a certain number of endpoints and control points will be added. Read more

Adds a sub-path from a polygon. 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

Performs the conversion.

Performs the conversion.

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.