Enum printpdf::LineCapStyle
source · pub enum LineCapStyle {
Butt,
Round,
ProjectingSquare,
}
Expand description
See PDF Reference (Page 216) - Line cap (ending) style
Variants§
Butt
Butt cap. The stroke is squared off at the endpoint of the path. There is no projection beyond the end of the path.
Round
Round cap. A semicircular arc with a diameter equal to the line width is drawn around the endpoint and filled in.
ProjectingSquare
Projecting square cap. The stroke continues beyond the endpoint of the path for a distance equal to half the line width and is squared off.
Trait Implementations§
source§impl Clone for LineCapStyle
impl Clone for LineCapStyle
source§fn clone(&self) -> LineCapStyle
fn clone(&self) -> LineCapStyle
Returns a copy 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 From<LineCapStyle> for Object
impl From<LineCapStyle> for Object
source§fn from(val: LineCapStyle) -> Self
fn from(val: LineCapStyle) -> Self
Converts to this type from the input type.
source§impl From<LineCapStyle> for Operation
impl From<LineCapStyle> for Operation
source§fn from(val: LineCapStyle) -> Self
fn from(val: LineCapStyle) -> Self
Converts to this type from the input type.
source§impl From<LineCapStyle> for i64
impl From<LineCapStyle> for i64
source§fn from(val: LineCapStyle) -> Self
fn from(val: LineCapStyle) -> Self
Converts to this type from the input type.
source§impl PartialEq for LineCapStyle
impl PartialEq for LineCapStyle
source§fn eq(&self, other: &LineCapStyle) -> bool
fn eq(&self, other: &LineCapStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for LineCapStyle
impl StructuralPartialEq for LineCapStyle
Auto Trait Implementations§
impl RefUnwindSafe for LineCapStyle
impl Send for LineCapStyle
impl Sync for LineCapStyle
impl Unpin 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