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
Состояние клеточного автомата
Fields§
§generation: Vec<u8>Текущее поколение
next_generation: Vec<u8>Следующее поколение
width: usizeШирина (для 2D)
height: usizeВысота (для 2D)
current_value: f64Текущее значение (для вывода)
step: usizeСчётчик шагов
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 · 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