pub struct Contour {
pub positions: Vec<Vector2F>,
pub flags: Vec<PointFlags>,
}
Expand description
A single curve or subpath within a glyph outline.
Fields§
§positions: Vec<Vector2F>
Positions of each point.
This must have the same length as the flags
field.
flags: Vec<PointFlags>
Flags that specify what type of point the corresponding position represents.
This must have the same length as the positions
field.
Implementations§
Trait Implementations§
source§impl PartialEq for Contour
impl PartialEq for Contour
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 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