pub struct Simulation {
pub state: WorldState,
pub world: World,
/* private fields */
}Expand description
Simulation engine combining state + ECS world
Fields§
§state: WorldState§world: WorldImplementations§
Source§impl Simulation
impl Simulation
Sourcepub fn snapshot(&self) -> SimulationSnapshot
pub fn snapshot(&self) -> SimulationSnapshot
Get snapshot of current state
Trait 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