pub enum RosterRule {
R445,
Amoeba,
Builder,
Clouds,
Coral,
Crystal,
Pyroclastic,
SlowDecay,
}Expand description
The closed roster of named rules. Each entry’s notation in the comment is
survive/birth/states/neighbourhood, as the 3D automaton catalogues write it;
every one is held by every_roster_rule_lives_from_its_own_seed to a live
fraction strictly inside (0, 0.9) at generations 100 and 400.
Variants§
R445
4/4/5/M: a sparse ball that burns out to a few still cells.
Amoeba
9-26/5-7,12-13,15/5/M: a sparse field that swells into a mass filling
most of the cube.
Builder
2,6,9/4,6,8-9/10/M: a burst of long-decaying growth that leaves a
still scatter of cells behind.
Clouds
13-26/13-14,17-19/2/M: a dense field that settles into rounded
clouds.
Coral
5-8/6-7,9,12/4/M: a slowly churning reef with a skin of decaying
cells.
Crystal
0-6/1,3/2/VN: a small seed growing into a lattice that fills most of
the cube.
Pyroclastic
4-7/6-8/10/M: a restless, never-settling foam of cells and long
decay.
SlowDecay
1,4,8,11,13-26/13-26/5/M: a dense field that freezes almost at once.
Implementations§
Source§impl RosterRule
impl RosterRule
Sourcepub const ALL: [RosterRule; 8]
pub const ALL: [RosterRule; 8]
Every roster rule, in the order the generated reference lists them.
Sourcepub fn seed(self) -> (f32, f32)
pub fn seed(self) -> (f32, f32)
The seed this rule lives from, as (seed_radius, seed_fill): what an
absent [voxel] seed_radius and seed_fill mean when the list opens
with this rule. A 3D rule is particular about its seed — clouds
survives only a dense field and dies from a sparse one, where crystal
grows from a small sparse ball.
Trait Implementations§
Source§impl Clone for RosterRule
impl Clone for RosterRule
Source§fn clone(&self) -> RosterRule
fn clone(&self) -> RosterRule
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RosterRule
impl Debug for RosterRule
Source§impl PartialEq for RosterRule
impl PartialEq for RosterRule
Source§fn eq(&self, other: &RosterRule) -> bool
fn eq(&self, other: &RosterRule) -> bool
self and other values to be equal, and is used by ==.impl Copy for RosterRule
impl Eq for RosterRule
impl StructuralPartialEq for RosterRule
Auto Trait Implementations§
impl Freeze for RosterRule
impl RefUnwindSafe for RosterRule
impl Send for RosterRule
impl Sync for RosterRule
impl Unpin for RosterRule
impl UnsafeUnpin for RosterRule
impl UnwindSafe for RosterRule
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
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
§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
key and return true if they are equal.