pub enum Base {
None,
Full,
Center,
Rigid,
NonAir,
Solid,
Water,
}Expand description
A base set of neighbours, as the game names it.
Variants§
None
No neighbour: only the rule’s added states hold.
Full
The neighbour’s face toward the block is FULL-sturdy
(isFaceSturdy(…, SupportType.FULL)): its support shape covers the
whole square.
Center
CENTER-sturdy: the support shape covers the face’s centre.
Rigid
RIGID-sturdy: the support shape covers the face but for a rim.
NonAir
Any block that is not air (!isAir()).
Solid
A solid block (isSolid()).
Water
A block whose fluid is still water.
Implementations§
Trait Implementations§
impl Copy for Base
impl Eq for Base
impl StructuralPartialEq for Base
Auto Trait Implementations§
impl Freeze for Base
impl RefUnwindSafe for Base
impl Send for Base
impl Sync for Base
impl Unpin for Base
impl UnsafeUnpin for Base
impl UnwindSafe for Base
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