pub enum CellState {
Uncollapsed,
Collapsed,
Conflict,
}Expand description
WFC单元格状态,对应C++的State枚举
Variants§
Uncollapsed
未坍塌 - 仍有多种瓷砖可能性,对应C++的Noncollapsed
Collapsed
已坍塌 - 确定了唯一瓷砖,对应C++的Collapsed
Conflict
冲突状态 - 无可行瓷砖选择,对应C++的conflict
Trait Implementations§
impl Copy for CellState
impl Eq for CellState
impl StructuralPartialEq for CellState
Auto Trait Implementations§
impl Freeze for CellState
impl RefUnwindSafe for CellState
impl Send for CellState
impl Sync for CellState
impl Unpin for CellState
impl UnsafeUnpin for CellState
impl UnwindSafe for CellState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.