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 RefUnwindSafe for Contour
impl Send for Contour
impl Sync for Contour
impl Unpin for Contour
impl UnwindSafe for Contour
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more