Struct lyon_path::builder::WithSvg

source ·
pub struct WithSvg<Builder: PathBuilder> { /* private fields */ }
Expand description

Implements an SVG-like building interface on top of a PathBuilder.

Implementations

Trait Implementations

The type of object that is created by this builder.
Builds a path object, consuming the builder.
Start a new sub-path at the given position. 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
Ends the current sub-path by connecting it back to its initial point. 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

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