pub enum LineJoin {
    Miter {
        limit: f64,
    },
    Round,
    Bevel,
}
Expand description

Options for angled joins in strokes.

Variants

Miter

Fields

limit: f64

The maximum distance between the inner and outer stroke edges before beveling.

The outer edges of the two paths are extended until they intersect.

Because the miter length can be extreme for small angles, you must supply a ‘limit’ at which we will fallback on LineJoin::Bevel.

This limit is the distance from the point where the inner edges of the stroke meet to the point where the outer edges meet.

The default limit is 10.0.

This is also currently the default LineJoin; you should only need to construct it if you need to customize the limit.

Round

The two lines are joined by a circular arc.

Bevel

The two segments are capped with LineCap::Butt, and the notch is filled.

Implementations

The default maximum length for a LineJoin::Miter.

This is defined in the Postscript Language Reference (pp 676).

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
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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.

Performs the conversion.
Performs the conversion.
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.