pub struct WfcSolver2D { /* private fields */ }Expand description
Wave Function Collapse 2D solver with Shannon-entropy selection and deterministic backtracking.
Implementations§
Source§impl WfcSolver2D
Wave Function Collapse solver with Shannon-entropy selection, propagation, and backtracking.
impl WfcSolver2D
Wave Function Collapse solver with Shannon-entropy selection, propagation, and backtracking.
Sourcepub fn new(rules: WfcRuleSet) -> Self
pub fn new(rules: WfcRuleSet) -> Self
Source§impl WfcSolver2D
Implements impl #impl_generics #name #ty_generics #where_clause.
impl WfcSolver2D
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_rules(&self) -> &WfcRuleSet
pub fn get_mut_rules(&mut self) -> &mut WfcRuleSet
pub fn set_rules(&mut self, val: WfcRuleSet) -> &mut Self
pub fn get_max_backtracks(&self) -> usize
pub fn get_mut_max_backtracks(&mut self) -> &mut usize
pub fn set_max_backtracks(&mut self, val: usize) -> &mut Self
Trait Implementations§
Source§impl Clone for WfcSolver2D
impl Clone for WfcSolver2D
Auto Trait Implementations§
impl Forget for WfcSolver2D
impl Freeze for WfcSolver2D
impl Move for WfcSolver2D
impl RefUnwindSafe for WfcSolver2D
impl Send for WfcSolver2Dwhere
RawVecInner: Send,
impl Sync for WfcSolver2Dwhere
RawVecInner: Sync,
impl Unpin for WfcSolver2D
impl UnsafeUnpin for WfcSolver2Dwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<f32>: UnsafeUnpin,
PhantomData<[WfcMask; 4]>: UnsafeUnpin,
impl UnwindSafe for WfcSolver2Dwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more