[][src]Struct lyon_algorithms::walk::RegularPattern

pub struct RegularPattern<Cb> {
    pub callback: Cb,
    pub interval: f32,
}

A simple pattern that invokes a callback at regular intervals.

If the callback returns false, path walking stops.

Fields

callback: Cb

The function to call at each step.

interval: f32

A constant interval between each step.

Trait Implementations

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

Auto Trait Implementations

impl<Cb> RefUnwindSafe for RegularPattern<Cb> where
    Cb: RefUnwindSafe

impl<Cb> Send for RegularPattern<Cb> where
    Cb: Send

impl<Cb> Sync for RegularPattern<Cb> where
    Cb: Sync

impl<Cb> Unpin for RegularPattern<Cb> where
    Cb: Unpin

impl<Cb> UnwindSafe for RegularPattern<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.