[][src]Struct lyon_algorithms::walk::RepeatedPattern

pub struct RepeatedPattern<'l, Cb> {
    pub callback: Cb,
    pub intervals: &'l [f32],
    pub index: usize,
}

A pattern that invokes a callback at a repeated sequence of constant intervals.

If the callback returns false, path walking stops.

Fields

callback: Cb

The function to call at each step.

intervals: &'l [f32]

The repeated interval sequence.

index: usize

The index of the next interval in the sequence.

Trait Implementations

impl<'l, Cb> Pattern for RepeatedPattern<'l, Cb> where
    Cb: FnMut(Point, Vector, f32) -> bool
[src]

Auto Trait Implementations

impl<'l, Cb> Send for RepeatedPattern<'l, Cb> where
    Cb: Send

impl<'l, Cb> Sync for RepeatedPattern<'l, Cb> where
    Cb: Sync

Blanket Implementations

impl<Cb> Pattern for Cb where
    Cb: FnMut(TypedPoint2D<f32, UnknownUnit>, TypedVector2D<f32, UnknownUnit>, f32) -> Option<f32>, 
[src]

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.