Struct lyon_algorithms::hatching::RegularHatchingPattern
source · pub struct RegularHatchingPattern<Cb: FnMut(&HatchSegment)> {
pub interval: f32,
pub callback: Cb,
}
Expand description
A HatchBuilder
implementation for hatching patterns with constant intervals.
Fields§
§interval: f32
The distance between each row of hatches.
callback: Cb
A callback invoked for each segment.
Trait Implementations§
source§impl<Cb: FnMut(&HatchSegment)> HatchBuilder for RegularHatchingPattern<Cb>
impl<Cb: FnMut(&HatchSegment)> HatchBuilder for RegularHatchingPattern<Cb>
source§fn next_offset(&mut self, _row: u32) -> f32
fn next_offset(&mut self, _row: u32) -> f32
Specifies the distance between each row of the pattern.
source§fn add_segment(&mut self, segment: &HatchSegment)
fn add_segment(&mut self, segment: &HatchSegment)
Called for each hatch segment.
Auto Trait Implementations§
impl<Cb> RefUnwindSafe for RegularHatchingPattern<Cb>where
Cb: RefUnwindSafe,
impl<Cb> Send for RegularHatchingPattern<Cb>where
Cb: Send,
impl<Cb> Sync for RegularHatchingPattern<Cb>where
Cb: Sync,
impl<Cb> Unpin for RegularHatchingPattern<Cb>where
Cb: Unpin,
impl<Cb> UnwindSafe for RegularHatchingPattern<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