[][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> RefUnwindSafe for RepeatedPattern<'l, Cb> where
    Cb: RefUnwindSafe

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

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

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

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

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<Cb> Pattern for Cb where
    Cb: FnMut(Point2D<f32, UnknownUnit>, Vector2D<f32, UnknownUnit>, f32) -> Option<f32>, 
[src]

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.