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§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)