pub enum Model {
None,
Sides,
Corners,
Blob,
}Expand description
The neighbourhood a transition reads, and the patterns it maps to tiles.
Variants§
None
No neighbours: every tile has pattern 0. Inside only; for variants.
Sides
The four sides, N 1, E 2, S 4, W 8: 16 patterns.
Corners
The four corners, NE 1, SE 2, SW 4, NW 8: the 16 patterns of a corner (Wang or marching-squares) set.
Blob
Sides and corners, N 1, NE 2, E 4, SE 8, S 16, SW 32, W 64, NW 128, with each corner counted only where its sides allow: 47 patterns.
Implementations§
Trait Implementations§
impl Copy for Model
impl Eq for Model
Source§impl Ord for Model
impl Ord for Model
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Model
impl PartialOrd for Model
impl StructuralPartialEq for Model
Auto Trait Implementations§
impl Forget for Model
impl Freeze for Model
impl Move for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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