pub struct Pipeline<C: Cell> { /* private fields */ }Expand description
Sequential algorithm pipeline.
§Examples
use terrain_forge::Grid;
use terrain_forge::compose::Pipeline;
use terrain_forge::algorithms::{Bsp, CellularAutomata};
let mut grid = Grid::new(40, 30);
let pipe = Pipeline::new()
.then(Bsp::default())
.then(CellularAutomata::default());
pipe.execute(&mut grid, 42);Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for Pipeline<C>
impl<C> !RefUnwindSafe for Pipeline<C>
impl<C> Send for Pipeline<C>
impl<C> Sync for Pipeline<C>
impl<C> Unpin for Pipeline<C>
impl<C> !UnwindSafe for Pipeline<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