pub struct Contour {
pub points: Vec<Point>,
pub closed: bool,
}Expand description
A contour: one flattened sub-path of a Path.
A contour is the unit of both filling and stroking. Filling triangulates the set of contours together (so that holes are punched correctly); stroking expands each contour on its own.
Fields§
§points: Vec<Point>The flattened vertices.
A closed contour repeats neither its first nor its last point; the closing edge is implicit.
closed: boolWhether the contour is explicitly closed.
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