pub enum LineCap {
Butt,
Round,
Square,
}
Expand description
Determines the shape used to draw the end points of lines:
Butt
(default), Round
, Square
.
Variants§
Butt
The ends of lines are squared off at the endpoints. Default value.
Round
The ends of lines are rounded.
Square
The ends of lines are squared off by adding a box with an equal width and half the height of the line’s thickness.
Trait Implementations§
source§impl PartialEq for LineCap
impl PartialEq for LineCap
source§impl PartialOrd for LineCap
impl PartialOrd for LineCap
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for LineCap
impl Eq for LineCap
impl StructuralPartialEq for LineCap
Auto Trait Implementations§
impl Freeze for LineCap
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more