Enum piet_common::LineCap
source · pub enum LineCap {
Butt,
Round,
Square,
}
Expand description
Options for the cap of stroked lines.
Variants§
Butt
The stroke is squared off at the endpoint of the path.
Round
The stroke ends in a semicircular arc with a diameter equal to the line width.
Square
The stroke projects past the end of the path, and is squared off.
The stroke projects for a distance equal to half the width of the line.
Trait Implementations§
source§impl PartialEq<LineCap> for LineCap
impl PartialEq<LineCap> for LineCap
impl Copy for LineCap
impl Eq for LineCap
impl StructuralEq for LineCap
impl StructuralPartialEq for LineCap
Auto Trait Implementations§
impl RefUnwindSafe for LineCap
impl Send for LineCap
impl Sync for LineCap
impl Unpin for LineCap
impl UnwindSafe for LineCap
Blanket Implementations§
source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.