pub enum LineCapStyle {
    Butt,
    Round,
    ProjectingSquare,
}
Expand description

See PDF Reference (Page 216) - Line cap (ending) style

Variants§

§

Butt

Butt cap. The stroke is squared off at the endpoint of the path. There is no projection beyond the end of the path.

§

Round

Round cap. A semicircular arc with a diameter equal to the line width is drawn around the endpoint and filled in.

§

ProjectingSquare

Projecting square cap. The stroke continues beyond the endpoint of the path for a distance equal to half the line width and is squared off.

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
Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.
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.

Sets value as a parameter of self.
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.