pub enum CellularFamily {
LifeLike,
LargerThanLife,
Cyclic,
}Expand description
Which rule space the automaton runs (ADR-0180 rule 1).
Variants§
LifeLike
Birth and survival as two bitmasks over the eight-neighbour count — Conway’s Life and every rule in its space.
LargerThanLife
Birth and survival as two intervals over the filled fraction of a box of
side 2 * radius + 1 — Evans’s Larger than Life, whose rules carry
travelling bugs and blobs where a radius-1 rule settles.
Cyclic
The cyclic automaton: states colours in a cycle, a cell advancing to
the next when at least threshold of its eight neighbours hold it.
From noise it organizes into interlocking rotating spirals.
Implementations§
Trait Implementations§
Source§impl Clone for CellularFamily
impl Clone for CellularFamily
Source§fn clone(&self) -> CellularFamily
fn clone(&self) -> CellularFamily
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CellularFamily
impl Debug for CellularFamily
Source§impl Default for CellularFamily
impl Default for CellularFamily
Source§fn default() -> CellularFamily
fn default() -> CellularFamily
Returns the “default value” for a type. Read more
Source§impl PartialEq for CellularFamily
impl PartialEq for CellularFamily
Source§fn eq(&self, other: &CellularFamily) -> bool
fn eq(&self, other: &CellularFamily) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CellularFamily
impl Eq for CellularFamily
impl StructuralPartialEq for CellularFamily
Auto Trait Implementations§
impl Freeze for CellularFamily
impl RefUnwindSafe for CellularFamily
impl Send for CellularFamily
impl Sync for CellularFamily
impl Unpin for CellularFamily
impl UnsafeUnpin for CellularFamily
impl UnwindSafe for CellularFamily
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.