[][src]Struct font_kit::outline::Contour

pub struct Contour {
    pub positions: Vec<Vector2F>,
    pub flags: Vec<PointFlags>,
}

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.