[−][src]Struct font_kit::outline::Contour
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
impl Contour
[src]
pub fn new() -> Contour
[src]
Creates a new empty contour.
pub fn push(&mut self, position: Vector2F, flags: PointFlags)
[src]
Adds a new point with the given flags to the contour.
pub fn copy_to<S>(&self, sink: &mut S) where
S: OutlineSink,
[src]
S: OutlineSink,
Sends this contour to an OutlineSink
.
Trait Implementations
impl Clone for Contour
[src]
impl Debug for Contour
[src]
impl PartialEq<Contour> for Contour
[src]
impl StructuralPartialEq for Contour
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,