pub enum LineCap {
Butt,
Round,
Square,
}Expand description
How the open ends of a stroked subpath are drawn — ISO 32000-1 §8.4.3.3’s
line cap style, written as J.
An enum rather than the 0/1/2 the operator takes: the wire spelling
is an encoding detail, and LineCap::Round says at a call
site what 1 does not.
Variants§
Butt
Squared off exactly at the endpoint. PDF’s default.
Round
A half-disc of the line’s width centred on the endpoint.
Square
A half-square projecting half a line width past the endpoint.
Trait Implementations§
impl 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 UnsafeUnpin 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