pub struct CellularState {
pub generation: Vec<u8>,
pub next_generation: Vec<u8>,
pub width: usize,
pub height: usize,
pub current_value: f64,
pub step: usize,
}Expand description
Cellular automaton state
Fields§
§generation: Vec<u8>Current generation
next_generation: Vec<u8>Next generation
width: usizeWidth (for 2D)
height: usizeHeight (for 2D)
current_value: f64Current value (for output)
step: usizeStep counter
Trait Implementations§
Source§impl Clone for CellularState
impl Clone for CellularState
Source§fn clone(&self) -> CellularState
fn clone(&self) -> CellularState
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 moreAuto Trait Implementations§
impl Freeze for CellularState
impl RefUnwindSafe for CellularState
impl Send for CellularState
impl Sync for CellularState
impl Unpin for CellularState
impl UnsafeUnpin for CellularState
impl UnwindSafe for CellularState
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