Enum piet_common::kurbo::PathEl[]

pub enum PathEl {
    MoveTo(Point),
    LineTo(Point),
    QuadTo(PointPoint),
    CurveTo(PointPointPoint),
    ClosePath,
}

The element of a Bézier path.

A valid path has MoveTo at the beginning of each subpath.

Variants

MoveTo(Point)

Move directly to the point without drawing anything, starting a new subpath.

LineTo(Point)

Draw a line from the current location to the point.

QuadTo(PointPoint)

Draw a quadratic bezier using the current location and the two points.

CurveTo(PointPointPoint)

Draw a cubic bezier using the current location and the three points.

ClosePath

Close off the path.

Implementations

impl PathEl

pub fn is_finite(&self) -> bool

Is this path element finite?

pub fn is_nan(&self) -> bool

Is this path element NaN?

Trait Implementations

impl Clone for PathEl

impl Copy for PathEl

impl Debug for PathEl

impl Extend<PathEl> for BezPath

impl FromIterator<PathEl> for BezPath

impl Mul<PathEl> for Affine

type Output = PathEl

The resulting type after applying the * operator.

impl Mul<PathEl> for TranslateScale

type Output = PathEl

The resulting type after applying the * operator.

impl PartialEq<PathEl> for PathEl

impl StructuralPartialEq for PathEl

Auto Trait Implementations

impl RefUnwindSafe for PathEl

impl Send for PathEl

impl Sync for PathEl

impl Unpin for PathEl

impl UnwindSafe for PathEl

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> RoundFrom<T> for T[src]

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<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.