pub enum Cap {
Butt,
Square,
Round,
}
Expand description
Defines the shape to be drawn at the beginning or end of a stroke.
Variants§
Butt
Flat cap.
Square
Square cap with dimensions equal to half the stroke width.
Round
Rounded cap with radius equal to half the stroke width.
Trait Implementations§
impl Copy for Cap
impl Eq for Cap
impl StructuralPartialEq for Cap
Auto Trait Implementations§
impl Freeze for Cap
impl RefUnwindSafe for Cap
impl Send for Cap
impl Sync for Cap
impl Unpin for Cap
impl UnwindSafe for Cap
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