pub struct Contour {
pub points: Vec<Point>,
pub closed: bool,
pub has_segments: bool,
}Expand description
Contour is one path contour flattened into a polyline.
Closed contours repeat their first point at the end so measurement and dashing include the closing edge. Closure remains explicit metadata rather than being inferred from coincident endpoints.
Fields§
§points: Vec<Point>points contains the flattened polyline in traversal order.
closed: boolclosed indicates whether the source contour ended with close.
has_segments: boolhas_segments distinguishes drawn zero-length contours from a lone move.
A close or explicit zero-length segment counts; a bare move_to does not.
Trait Implementations§
impl StructuralPartialEq for Contour
Auto Trait Implementations§
impl Freeze for Contour
impl RefUnwindSafe for Contour
impl Send for Contour
impl Sync for Contour
impl Unpin for Contour
impl UnsafeUnpin for Contour
impl UnwindSafe for Contour
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