Struct nbez::BezChain [] [src]

pub struct BezChain<F, B, C> where
    F: Float,
    B: BezCurve<F> + OrderStatic,
    C: AsRef<[B::Point]>, 
{ /* fields omitted */ }

A chain of bezier curves, with the last point of each curve being the first point of the next.

Methods

impl<F, B, C> BezChain<F, B, C> where
    F: Float,
    B: BezCurve<F> + OrderStatic,
    C: AsRef<[B::Point]>, 
[src]

Create a new BezChain by wrapping around a container.

Get the bezier curve that is index curves away from the start. Returns None if not enough points exist for the given curve index.

Get an iterator over all curves in the chain.

Get the order of the chain's curves. Identical to order_static().

Unwrap the chain, returning the underlying container.

Trait Implementations

impl<F: Clone, B: Clone, C: Clone> Clone for BezChain<F, B, C> where
    F: Float,
    B: BezCurve<F> + OrderStatic,
    C: AsRef<[B::Point]>, 
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<F: Copy, B: Copy, C: Copy> Copy for BezChain<F, B, C> where
    F: Float,
    B: BezCurve<F> + OrderStatic,
    C: AsRef<[B::Point]>, 
[src]

impl<F, B, C> OrderStatic for BezChain<F, B, C> where
    F: Float,
    B: BezCurve<F> + OrderStatic,
    C: AsRef<[B::Point]>, 
[src]

Gets the compiletime-known curve order.

impl<F, B, C> AsRef<C> for BezChain<F, B, C> where
    F: Float,
    B: BezCurve<F> + OrderStatic,
    C: AsRef<[B::Point]>, 
[src]

Performs the conversion.

impl<F, B, C> AsMut<C> for BezChain<F, B, C> where
    F: Float,
    B: BezCurve<F> + OrderStatic,
    C: AsRef<[B::Point]>, 
[src]

Performs the conversion.

impl<F, B, C> Debug for BezChain<F, B, C> where
    F: Float,
    B: BezCurve<F> + OrderStatic,
    C: AsRef<[B::Point]> + Debug
[src]

Formats the value using the given formatter.