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
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
sourcefn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
sourceimpl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
sourcefn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.