logo
pub struct NoAttributes<B: PathBuilder> { /* private fields */ }
Expand description

A convenience wrapper for PathBuilder without custom attributes.

See the PathBuilder trait.

This simply forwards to an underlying PathBuilder implementation, using no attributes.

Implementations

Starts a new sub-path at a given position.

There must be no sub-path in progress when this method is called. at becomes the current position of the sub-path.

Ends the current sub path.

A sub-path must be in progress when this method is called. After this method is called, there is no sub-path in progress until begin is called again.

Closes the current sub path.

Shorthand for builder.end(true).

Adds a line segment to the current sub-path.

A sub-path must be in progress when this method is called.

Adds a quadratic bézier curve to the current sub-path.

A sub-path must be in progress when this method is called.

Adds a cubic bézier curve to the current sub-path.

A sub-path must be in progress when this method is called.

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

The Builder implementation may use this information to pre-allocate memory as an optimization.

Applies the provided path event.

By default this calls one of begin, end, line, quadratic_bezier_segment, or cubic_bezier_segment according to the path event.

The requirements for each method apply to the corresponding event.

Adds a sub-path from a polygon.

There must be no sub-path in progress when this method is called. No sub-path is in progress after the method is called.

Adds a sub-path containing a single point.

There must be no sub-path in progress when this method is called. No sub-path is in progress after the method is called.

Adds a sub-path containing a single line segment.

There must be no sub-path in progress when this method is called. No sub-path is in progress after the method is called.

Adds a sub-path containing an ellipse.

There must be no sub-path in progress when this method is called. No sub-path is in progress after the method is called.

Adds a sub-path containing a circle.

There must be no sub-path in progress when this method is called. No sub-path is in progress after the method is called.

Adds a sub-path containing a rectangle.

There must be no sub-path in progress when this method is called. No sub-path is in progress after the method is called.

Adds a sub-path containing a rectangle.

There must be no sub-path in progress when this method is called. No sub-path is in progress after the method is called.

Returns a builder that approximates all curves with sequences of line segments.

Returns a builder that applies the given transformation to all positions.

Returns a builder that support SVG commands.

This must be called before starting to add any sub-path.

Builds a path object, consuming the builder.

Trait Implementations

The type of object that is created by this builder.

Builds a path object, consuming the builder.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Starts a new sub-path at a given position. Read more

Ends the current sub path. Read more

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

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

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

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

Closes the current sub path. Read more

Applies the provided path event. Read more

Adds a sub-path from a polygon. Read more

Adds a sub-path containing a single point. Read more

Adds a sub-path containing a single line segment. Read more

Adds a sub-path containing an ellipse. Read more

Adds a sub-path containing a circle. Read more

Adds a sub-path containing a rectangle. Read more

Adds a sub-path containing a rectangle. Read more

Returns a builder that approximates all curves with sequences of line segments.

Returns a builder that applies the given transformation to all positions.

Returns a builder that support SVG commands. 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.