pub struct Simulation { /* private fields */ }Expand description
The world’s state and rules, with no terminal in sight so it can be tested.
Positions are in cells: x along, y down in rows. Rows are twice as tall
as cells are wide, so wherever distance matters y is doubled first and a
ball is round.
Implementations§
Auto Trait Implementations§
impl Freeze for Simulation
impl RefUnwindSafe for Simulation
impl Send for Simulation
impl Sync for Simulation
impl Unpin for Simulation
impl UnsafeUnpin for Simulation
impl UnwindSafe for Simulation
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