pub struct LayeredGenerator<C: Cell = Tile> { /* private fields */ }Expand description
Layered generator that blends multiple algorithms.
Generic over C: Cell, so it works with both Tile and custom cell types.
Implementations§
Source§impl<C: Cell> LayeredGenerator<C>
impl<C: Cell> LayeredGenerator<C>
Sourcepub fn base<A: Algorithm<C> + Send + Sync + 'static>(self, algo: A) -> Self
pub fn base<A: Algorithm<C> + Send + Sync + 'static>(self, algo: A) -> Self
Sets the base layer (replaces).
Sourcepub fn union<A: Algorithm<C> + Send + Sync + 'static>(self, algo: A) -> Self
pub fn union<A: Algorithm<C> + Send + Sync + 'static>(self, algo: A) -> Self
Adds a union layer.
Sourcepub fn intersect<A: Algorithm<C> + Send + Sync + 'static>(self, algo: A) -> Self
pub fn intersect<A: Algorithm<C> + Send + Sync + 'static>(self, algo: A) -> Self
Adds an intersection layer.
Sourcepub fn difference<A: Algorithm<C> + Send + Sync + 'static>(
self,
algo: A,
) -> Self
pub fn difference<A: Algorithm<C> + Send + Sync + 'static>( self, algo: A, ) -> Self
Adds a difference layer.
Trait Implementations§
Source§impl<C: Cell + 'static> Algorithm<C> for LayeredGenerator<C>
impl<C: Cell + 'static> Algorithm<C> for LayeredGenerator<C>
Auto Trait Implementations§
impl<C> Freeze for LayeredGenerator<C>
impl<C = Tile> !RefUnwindSafe for LayeredGenerator<C>
impl<C> Send for LayeredGenerator<C>
impl<C> Sync for LayeredGenerator<C>
impl<C> Unpin for LayeredGenerator<C>
impl<C = Tile> !UnwindSafe for LayeredGenerator<C>
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