pub enum LineCapStyle {
Butt,
Round,
ProjectingSquare,
}Expand description
ISO 32000-1:2008 8.4.3.3
The line cap style shall specify the shape that shall be used at the ends of open subpaths (and dashes, if any) when they are stroked.
Variants§
Butt
0: Butt cap. The stroke shall be squared off at the endpoint of the path. There shall be no projection beyond the end of the path.
Round
1: Round cap. A semicircular arc with a diameter equal to the line width shall be drawn around the endpoint and shall be filled in.
ProjectingSquare
2: Projecting square cap. The stroke shall continue beyond the endpoint of the path for a distance equal to half the line width and shall be squared off.
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<'de> Deserialize<'de> for LineCapStyle
impl<'de> Deserialize<'de> for LineCapStyle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Into<LineCapStyle> for LineCapStyle
impl Into<LineCapStyle> for LineCapStyle
Source§fn into(self) -> LineCapStyle
fn into(self) -> LineCapStyle
Converts this type into the (usually inferred) input type.
Source§impl Serialize for LineCapStyle
impl Serialize for LineCapStyle
impl Copy 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more