Enum printpdf::extgstate::LineJoinStyle
source · pub enum LineJoinStyle {
Miter,
Round,
Limit,
}
Expand description
See PDF Reference Page 216 - Line join style
Variants§
Miter
Miter join. The outer edges of the strokes for the two segments are extended until they meet at an angle, as in a picture frame. If the segments meet at too sharp an angle (as defined by the miter limit parameter—see “Miter Limit,” above), a bevel join is used instead.
Round
Round join. An arc of a circle with a diameter equal to the line width is drawn around the point where the two segments meet, connecting the outer edges of the strokes for the two segments. This pieslice-shaped figure is filled in, pro- ducing a rounded corner.
Limit
Bevel join. The two segments are finished with butt caps (see “Line Cap Style” on page 216) and the resulting notch beyond the ends of the segments is filled with a triangle.
Trait Implementations§
source§impl Clone for LineJoinStyle
impl Clone for LineJoinStyle
source§fn clone(&self) -> LineJoinStyle
fn clone(&self) -> LineJoinStyle
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 LineJoinStyle
impl Debug for LineJoinStyle
source§impl From<LineJoinStyle> for Object
impl From<LineJoinStyle> for Object
source§fn from(val: LineJoinStyle) -> Self
fn from(val: LineJoinStyle) -> Self
Converts to this type from the input type.
source§impl From<LineJoinStyle> for Operation
impl From<LineJoinStyle> for Operation
source§fn from(val: LineJoinStyle) -> Self
fn from(val: LineJoinStyle) -> Self
Converts to this type from the input type.
source§impl From<LineJoinStyle> for i64
impl From<LineJoinStyle> for i64
source§fn from(val: LineJoinStyle) -> Self
fn from(val: LineJoinStyle) -> Self
Converts to this type from the input type.
source§impl PartialEq for LineJoinStyle
impl PartialEq for LineJoinStyle
source§fn eq(&self, other: &LineJoinStyle) -> bool
fn eq(&self, other: &LineJoinStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for LineJoinStyle
impl StructuralPartialEq for LineJoinStyle
Auto Trait Implementations§
impl RefUnwindSafe for LineJoinStyle
impl Send for LineJoinStyle
impl Sync for LineJoinStyle
impl Unpin for LineJoinStyle
impl UnwindSafe for LineJoinStyle
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