[−][src]Struct oxygengine_procedural::wave_function_collapse::WaveFunctionCollapseSolver
Implementations
impl<T> WaveFunctionCollapseSolver<T> where
T: Clone + Send + Sync + PartialEq,
[src]
T: Clone + Send + Sync + PartialEq,
pub fn build(
model: WaveFunctionCollapseModel<T>,
superposition: Grid2d<Vec<T>>,
cells_per_step: Option<usize>
) -> Result<WaveFunctionCollapseSolverBuilder<T>, WaveFunctionCollapseError>
[src]
model: WaveFunctionCollapseModel<T>,
superposition: Grid2d<Vec<T>>,
cells_per_step: Option<usize>
) -> Result<WaveFunctionCollapseSolverBuilder<T>, WaveFunctionCollapseError>
pub fn new(
model: WaveFunctionCollapseModel<T>,
superposition: Grid2d<Vec<T>>
) -> Result<Self, WaveFunctionCollapseError>
[src]
model: WaveFunctionCollapseModel<T>,
superposition: Grid2d<Vec<T>>
) -> Result<Self, WaveFunctionCollapseError>
pub fn new_inspect<F>(
model: WaveFunctionCollapseModel<T>,
superposition: Grid2d<Vec<T>>,
cells_per_step: Option<usize>,
f: F
) -> Result<Self, WaveFunctionCollapseError> where
F: FnMut(usize, usize),
[src]
model: WaveFunctionCollapseModel<T>,
superposition: Grid2d<Vec<T>>,
cells_per_step: Option<usize>,
f: F
) -> Result<Self, WaveFunctionCollapseError> where
F: FnMut(usize, usize),
pub fn get_uncollapsed_world(&self) -> Grid2d<Vec<T>>
[src]
pub fn collapse(&mut self) -> WaveFunctionCollapseResult<T>
[src]
pub fn collapse_with_tries(
&mut self,
tries: usize
) -> WaveFunctionCollapseResult<T>
[src]
&mut self,
tries: usize
) -> WaveFunctionCollapseResult<T>
pub fn collapse_inspect<F>(&mut self, f: F) -> WaveFunctionCollapseResult<T> where
F: FnMut(usize, usize, Grid2d<Vec<T>>),
[src]
F: FnMut(usize, usize, Grid2d<Vec<T>>),
pub fn collapse_inspect_with_tries<F>(
&mut self,
tries: usize,
f: F
) -> WaveFunctionCollapseResult<T> where
F: FnMut() -> Box<dyn FnMut(usize, usize, Grid2d<Vec<T>>)>,
[src]
&mut self,
tries: usize,
f: F
) -> WaveFunctionCollapseResult<T> where
F: FnMut() -> Box<dyn FnMut(usize, usize, Grid2d<Vec<T>>)>,
pub fn collapse_step(
&mut self,
show_uncollapsed_world: bool
) -> WaveFunctionCollapseResult<T>
[src]
&mut self,
show_uncollapsed_world: bool
) -> WaveFunctionCollapseResult<T>
pub fn progress(&self) -> (usize, usize)
[src]
Trait Implementations
impl<T: Clone> Clone for WaveFunctionCollapseSolver<T> where
T: Clone + Send + Sync + PartialEq,
[src]
T: Clone + Send + Sync + PartialEq,
fn clone(&self) -> WaveFunctionCollapseSolver<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for WaveFunctionCollapseSolver<T> where
T: Clone + Send + Sync + PartialEq + Debug,
[src]
T: Clone + Send + Sync + PartialEq + Debug,
Auto Trait Implementations
impl<T> RefUnwindSafe for WaveFunctionCollapseSolver<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> !Send for WaveFunctionCollapseSolver<T>
impl<T> !Sync for WaveFunctionCollapseSolver<T>
impl<T> Unpin for WaveFunctionCollapseSolver<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for WaveFunctionCollapseSolver<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,