pub enum LineCap {
Butt,
Round,
Projecting,
}Expand description
Stroke line-cap style.
Determines how open sub-path endpoints are capped. Corresponds directly to
the PDF lineCap graphics-state parameter (PDF 32000-1:2008, §8.4.3.3).
§Extension policy
Not #[non_exhaustive]: PDF specifies exactly three cap styles; exhaustive
matching is a compile-time guarantee that all are handled.
Variants§
Butt
Square end flush with the endpoint (PDF cap style 0).
Round
Semicircle centred on the endpoint, radius = half line-width (PDF cap style 1).
Projecting
Square extending half the line-width beyond the endpoint (PDF cap style 2).
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