pub enum LineCap {
Butt = 0,
Round = 1,
ProjectingSquare = 2,
}Expand description
A line-cap style (J operator, §8.4.3.3, Table 54). The three legal
integer values, named so a caller cannot pass an out-of-range code.
Variants§
Butt = 0
0 — butt cap: the stroke is squared off at the endpoint.
Round = 1
1 — round cap: a semicircular arc caps the endpoint.
ProjectingSquare = 2
2 — projecting square cap: the stroke extends half a line width past the endpoint and is squared off.
Trait Implementations§
impl Copy for LineCap
impl Eq for LineCap
impl StructuralPartialEq for LineCap
Auto Trait Implementations§
impl Forget for LineCap
impl Freeze for LineCap
impl Move for LineCap
impl RefUnwindSafe for LineCap
impl Send for LineCap
impl Sync for LineCap
impl Unpin for LineCap
impl UnsafeUnpin for LineCap
impl UnwindSafe for LineCap
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