Enum kurbo::PathEl[][src]

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[src]

pub fn is_finite(&self) -> bool[src]

Is this path element finite?

pub fn is_nan(&self) -> bool[src]

Is this path element NaN?

Trait Implementations

impl Clone for PathEl[src]

impl Copy for PathEl[src]

impl Debug for PathEl[src]

impl<'de> Deserialize<'de> for PathEl[src]

impl Extend<PathEl> for BezPath[src]

impl FromIterator<PathEl> for BezPath[src]

impl Mul<PathEl> for Affine[src]

type Output = PathEl

The resulting type after applying the * operator.

impl Mul<PathEl> for TranslateScale[src]

type Output = PathEl

The resulting type after applying the * operator.

impl PartialEq<PathEl> for PathEl[src]

impl Serialize for PathEl[src]

impl StructuralPartialEq for PathEl[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.