pub struct CellularConfig {
pub family: CellularFamily,
pub grid: u32,
pub wrap: bool,
pub salt: u32,
}Expand description
[cellular] — the structural configuration, fixed while the preset is
loaded and delivered through Scene::configure.
Fields§
§family: CellularFamilyWhich automaton runs.
grid: u32Cells per side of the square grid. A content value — see the module
docs — validated at load into MIN_GRID..=MAX_GRID.
wrap: booltrue: the grid is a torus. false: every cell past the border is
dead, and the present leaves the frame outside the grid empty.
salt: u32The preset’s pinned salt (ADR-0051), which every seeded cell is drawn from.
Trait Implementations§
Source§impl Clone for CellularConfig
impl Clone for CellularConfig
Source§fn clone(&self) -> CellularConfig
fn clone(&self) -> CellularConfig
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 CellularConfig
impl Debug for CellularConfig
Source§impl Default for CellularConfig
impl Default for CellularConfig
Source§impl PartialEq for CellularConfig
impl PartialEq for CellularConfig
Source§fn eq(&self, other: &CellularConfig) -> bool
fn eq(&self, other: &CellularConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CellularConfig
impl Eq for CellularConfig
impl StructuralPartialEq for CellularConfig
Auto Trait Implementations§
impl Freeze for CellularConfig
impl RefUnwindSafe for CellularConfig
impl Send for CellularConfig
impl Sync for CellularConfig
impl Unpin for CellularConfig
impl UnsafeUnpin for CellularConfig
impl UnwindSafe for CellularConfig
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.