[][src]Struct wfc::RunOwn

pub struct RunOwn<'a, W: Wrap = WrapXY, F: ForbidPattern = ForbidNothing> { /* fields omitted */ }

Represents a running instance of wfc which allocates and owns its resources

Methods

impl<'a> RunOwn<'a>[src]

pub fn new<R: Rng>(
    output_size: Size,
    global_stats: &'a GlobalStats,
    rng: &mut R
) -> Self
[src]

impl<'a, W: Wrap> RunOwn<'a, W>[src]

pub fn new_wrap<R: Rng>(
    output_size: Size,
    global_stats: &'a GlobalStats,
    wrap: W,
    rng: &mut R
) -> Self
[src]

impl<'a, F: ForbidPattern> RunOwn<'a, WrapXY, F>[src]

pub fn new_forbid<R: Rng>(
    output_size: Size,
    global_stats: &'a GlobalStats,
    forbid: F,
    rng: &mut R
) -> Self
[src]

impl<'a, W: Wrap, F: ForbidPattern> RunOwn<'a, W, F>[src]

pub fn new_wrap_forbid<R: Rng>(
    output_size: Size,
    global_stats: &'a GlobalStats,
    wrap: W,
    forbid: F,
    rng: &mut R
) -> Self
[src]

impl<'a, W: Wrap, F: ForbidPattern> RunOwn<'a, W, F>[src]

pub fn step<R: Rng>(&mut self, rng: &mut R) -> Result<Observe, PropagateError>[src]

pub fn collapse<R: Rng>(&mut self, rng: &mut R) -> Result<(), PropagateError>[src]

pub fn wave_cell_ref(&self, coord: Coord) -> WaveCellRef[src]

pub fn wave_cell_ref_iter(&self) -> impl Iterator<Item = WaveCellRef>[src]

pub fn wave_cell_ref_enumerate(
    &self
) -> impl Iterator<Item = (Coord, WaveCellRef)>
[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]

Auto Trait Implementations

impl<'a, W, F> Send for RunOwn<'a, W, F> where
    F: Send,
    W: Send

impl<'a, W, F> Sync for RunOwn<'a, W, F> where
    F: Sync,
    W: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.