pub struct Run<'a, W: Wrap> { /* private fields */ }
Implementations
sourceimpl<'a, W: Wrap> Run<'a, W>
impl<'a, W: Wrap> Run<'a, W>
pub fn step<R: Rng>(&mut self, rng: &mut R) -> Result<Observe, PropagateError>
pub fn forbid_all_patterns_except(
&mut self,
coord: Coord,
pattern_id: PatternId
) -> Result<(), PropagateError>
pub fn forbid_pattern(
&mut self,
coord: Coord,
pattern_id: PatternId
) -> Result<(), PropagateError>
pub fn collapse<R: Rng>(&mut self, rng: &mut R) -> Result<(), PropagateError>
pub fn wave_cell_ref(&self, coord: Coord) -> WaveCellRef<'_>
pub fn wave_cell_ref_iter(&self) -> impl Iterator<Item = WaveCellRef<'_>>
pub fn wave_cell_ref_enumerate(
&self
) -> impl Iterator<Item = (Coord, WaveCellRef<'_>)>
pub fn new<R: Rng>(
context: &'a mut Context,
wave: &'a mut Wave,
global_stats: &'a GlobalStats,
_output_wrap: W,
rng: &mut R
) -> Self
Auto Trait Implementations
impl<'a, W> RefUnwindSafe for Run<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for Run<'a, W>where
W: Send,
impl<'a, W> Sync for Run<'a, W>where
W: Sync,
impl<'a, W> Unpin for Run<'a, W>where
W: Unpin,
impl<'a, W> !UnwindSafe for Run<'a, W>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more