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

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

The function to call at each step.

The repeated interval sequence.

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]

This method is invoked at each step along the path. Read more

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