[−][src]Struct wfc::RunOwn
Represents a running instance of wfc which allocates and owns its resources
Methods
impl<'a, W: Wrap> RunOwn<'a, W>
[src]
pub fn new<R: Rng>(
output_size: Size,
global_stats: &'a GlobalStats,
output_wrap: W,
rng: &mut R
) -> Self
[src]
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>
[src]
&mut self,
coord: Coord,
pattern_id: PatternId
) -> Result<(), PropagateError>
pub fn forbid_pattern(
&mut self,
coord: Coord,
pattern_id: PatternId
) -> Result<(), PropagateError>
[src]
&mut self,
coord: Coord,
pattern_id: PatternId
) -> Result<(), PropagateError>
pub fn step<R: Rng>(&mut self, rng: &mut R) -> Result<Observe, PropagateError>
[src]
pub fn wave_cell_ref(&self, coord: Coord) -> WaveCellRef
[src]
pub fn wave_cell_ref_iter(
&self
) -> impl Iterator<Item = WaveCellRef>
[src]
&self
) -> impl Iterator<Item = WaveCellRef>
pub fn wave_cell_ref_enumerate(
&self
) -> impl Iterator<Item = (Coord, WaveCellRef)>
[src]
&self
) -> impl Iterator<Item = (Coord, WaveCellRef)>
pub fn collapse<R: Rng>(&mut self, rng: &mut R) -> Result<(), PropagateError>
[src]
pub fn into_wave(self) -> Wave
[src]
pub fn collapse_retrying<R, RO>(self, retry: RO, rng: &mut R) -> RO::Return where
R: Rng,
RO: RetryOwn,
[src]
R: Rng,
RO: RetryOwn,
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,