pub struct CellularAutomaton<T: Clone> {
pub grid: Vec<Vec<T>>,
pub width: usize,
pub height: usize,
}Expand description
Generic 2D cellular automaton grid.
Fields§
§grid: Vec<Vec<T>>§width: usize§height: usizeImplementations§
Trait Implementations§
Source§impl<T: Clone + Clone> Clone for CellularAutomaton<T>
impl<T: Clone + Clone> Clone for CellularAutomaton<T>
Source§fn clone(&self) -> CellularAutomaton<T>
fn clone(&self) -> CellularAutomaton<T>
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<T> Freeze for CellularAutomaton<T>
impl<T> RefUnwindSafe for CellularAutomaton<T>where
T: RefUnwindSafe,
impl<T> Send for CellularAutomaton<T>where
T: Send,
impl<T> Sync for CellularAutomaton<T>where
T: Sync,
impl<T> Unpin for CellularAutomaton<T>where
T: Unpin,
impl<T> UnsafeUnpin for CellularAutomaton<T>
impl<T> UnwindSafe for CellularAutomaton<T>where
T: UnwindSafe,
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