#[repr(u8)]pub enum LineCapStyle {
Butt = 0,
Round = 1,
Square = 2,
}Expand description
Line cap style (PDF spec Table 54).
Specifies the shape to be used at the ends of open subpaths when stroked.
Variants§
Butt = 0
Butt cap: stroke is squared off at the endpoint.
Round = 1
Round cap: semicircular arc at the endpoint.
Square = 2
Projecting square cap: extends half the line width past endpoint.
Implementations§
Trait Implementations§
Source§impl Clone for LineCapStyle
impl Clone for LineCapStyle
Source§fn clone(&self) -> LineCapStyle
fn clone(&self) -> LineCapStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LineCapStyle
impl Debug for LineCapStyle
Source§impl Default for LineCapStyle
impl Default for LineCapStyle
Source§fn default() -> LineCapStyle
fn default() -> LineCapStyle
Returns the “default value” for a type. Read more
Source§impl Hash for LineCapStyle
impl Hash for LineCapStyle
Source§impl PartialEq for LineCapStyle
impl PartialEq for LineCapStyle
impl Copy for LineCapStyle
impl Eq for LineCapStyle
impl StructuralPartialEq for LineCapStyle
Auto Trait Implementations§
impl Freeze for LineCapStyle
impl RefUnwindSafe for LineCapStyle
impl Send for LineCapStyle
impl Sync for LineCapStyle
impl Unpin for LineCapStyle
impl UnsafeUnpin for LineCapStyle
impl UnwindSafe for LineCapStyle
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