#[non_exhaustive]#[repr(i32)]pub enum PenLineCap {
Flat = 0,
Square = 1,
Round = 2,
Triangle = 3,
}Expand description
How the ends of a dash (or a line) are drawn. Ordinals mirror
Noesis::PenLineCap.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Flat = 0
A cap that does not extend past the last point of the line.
Square = 1
A rectangle half the line thickness long.
Round = 2
A semicircle with diameter equal to the line thickness.
Triangle = 3
An isosceles right triangle.
Trait Implementations§
Source§impl Clone for PenLineCap
impl Clone for PenLineCap
Source§fn clone(&self) -> PenLineCap
fn clone(&self) -> PenLineCap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PenLineCap
Source§impl Debug for PenLineCap
impl Debug for PenLineCap
impl Eq for PenLineCap
Source§impl PartialEq for PenLineCap
impl PartialEq for PenLineCap
Source§fn eq(&self, other: &PenLineCap) -> bool
fn eq(&self, other: &PenLineCap) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PenLineCap
Auto Trait Implementations§
impl Freeze for PenLineCap
impl RefUnwindSafe for PenLineCap
impl Send for PenLineCap
impl Sync for PenLineCap
impl Unpin for PenLineCap
impl UnsafeUnpin for PenLineCap
impl UnwindSafe for PenLineCap
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