Enum lyon_tessellation::LineCap [−][src]
pub enum LineCap { Butt, Square, Round, }
Expand description
Line cap as defined by the SVG specification.
Variants
The stroke for each sub-path does not extend beyond its two endpoints. A zero length sub-path will therefore not have any stroke.
At the end of each sub-path, the shape representing the stroke will be extended by a rectangle with the same width as the stroke width and whose length is half of the stroke width. If a sub-path has zero length, then the resulting effect is that the stroke for that sub-path consists solely of a square with side length equal to the stroke width, centered at the sub-path’s point.
At each end of each sub-path, the shape representing the stroke will be extended by a half circle with a radius equal to the stroke width. If a sub-path has zero length, then the resulting effect is that the stroke for that sub-path consists solely of a full circle centered at the sub-path’s point.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LineCap
impl UnwindSafe for LineCap
Blanket Implementations
Mutably borrows from an owned value. Read more