[][src]Enum kurbo::PathSeg

pub enum PathSeg {
    Line(Line),
    Quad(QuadBez),
    Cubic(CubicBez),
}

A segment of a Bézier path.

Variants

Line(Line)

A line segment.

Quad(QuadBez)

A quadratic bezier segment.

Cubic(CubicBez)

A cubic bezier segment.

Methods

impl PathSeg[src]

pub fn reverse(&self) -> PathSeg[src]

Returns a new PathSeg describing the same path as self, but with the points reversed.

pub fn to_cubic(&self) -> CubicBez[src]

Convert this segment to a cubic bezier.

Trait Implementations

impl Clone for PathSeg[src]

impl Copy for PathSeg[src]

impl Debug for PathSeg[src]

impl From<CubicBez> for PathSeg[src]

impl From<Line> for PathSeg[src]

impl From<QuadBez> for PathSeg[src]

impl ParamCurve for PathSeg[src]

impl ParamCurveArclen for PathSeg[src]

impl ParamCurveArea for PathSeg[src]

impl ParamCurveExtrema for PathSeg[src]

impl ParamCurveNearest for PathSeg[src]

impl PartialEq<PathSeg> for PathSeg[src]

impl StructuralPartialEq for PathSeg[src]

Auto Trait Implementations

impl RefUnwindSafe for PathSeg

impl Send for PathSeg

impl Sync for PathSeg

impl Unpin for PathSeg

impl UnwindSafe for PathSeg

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.