pub enum OffsetCap {
Round,
Butt,
Square,
}Expand description
Endpoint cap style for checked open curve-string outlines.
The cap is applied after the source curve string has been offset on both
sides. This enum describes only the endpoint construction; joins along the
left and right traces still use the primitive offset and line/round-join
machinery documented on CurveString2::offset_left_with_line_joins.
Variants§
Round
Connect left and right traces with circular arcs centered on endpoints.
Butt
Connect left and right traces directly at each endpoint.
Square
Extend each trace by one half-width along endpoint tangents before adding straight endpoint connectors.
Trait Implementations§
impl Copy for OffsetCap
impl Eq for OffsetCap
impl StructuralPartialEq for OffsetCap
Auto Trait Implementations§
impl Freeze for OffsetCap
impl RefUnwindSafe for OffsetCap
impl Send for OffsetCap
impl Sync for OffsetCap
impl Unpin for OffsetCap
impl UnsafeUnpin for OffsetCap
impl UnwindSafe for OffsetCap
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