pub struct RunOwn<'a, W: Wrap> { /* private fields */ }
Expand description
Represents a running instance of wfc which allocates and owns its resources
Implementations
sourceimpl<'a, W: Wrap> RunOwn<'a, W>
impl<'a, W: Wrap> RunOwn<'a, W>
pub fn new<R: Rng>(
output_size: Size,
global_stats: &'a GlobalStats,
output_wrap: W,
rng: &mut R
) -> Self
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 step<R: Rng>(&mut self, rng: &mut R) -> Result<Observe, 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 collapse<R: Rng>(&mut self, rng: &mut R) -> Result<(), PropagateError>
pub fn into_wave(self) -> Wave
pub fn collapse_retrying<R, RO>(self, retry: RO, rng: &mut R) -> RO::Returnwhere
R: Rng,
RO: RetryOwn,
Auto Trait Implementations
impl<'a, W> RefUnwindSafe for RunOwn<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for RunOwn<'a, W>where
W: Send,
impl<'a, W> Sync for RunOwn<'a, W>where
W: Sync,
impl<'a, W> Unpin for RunOwn<'a, W>where
W: Unpin,
impl<'a, W> UnwindSafe for RunOwn<'a, W>where
W: UnwindSafe,
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