Struct lyon_algorithms::walk::RepeatedPattern
source · pub struct RepeatedPattern<'l, Cb> {
pub callback: Cb,
pub intervals: &'l [f32],
pub index: usize,
}
Expand description
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§
source§impl<'l, Cb> Pattern for RepeatedPattern<'l, Cb>
impl<'l, Cb> Pattern for RepeatedPattern<'l, Cb>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more