pub struct SimulationSnapshot {
pub tick: u64,
pub population: u64,
pub citizen_count: usize,
pub building_count: usize,
pub military_count: usize,
pub energy_budget: Fixed,
}Expand description
Snapshot of simulation state
Fields§
§tick: u64§population: u64§citizen_count: usize§building_count: usize§military_count: usize§energy_budget: FixedTrait Implementations§
Source§impl Clone for SimulationSnapshot
impl Clone for SimulationSnapshot
Source§fn clone(&self) -> SimulationSnapshot
fn clone(&self) -> SimulationSnapshot
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 moreSource§impl Debug for SimulationSnapshot
impl Debug for SimulationSnapshot
Source§impl<'de> Deserialize<'de> for SimulationSnapshot
impl<'de> Deserialize<'de> for SimulationSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SimulationSnapshot
impl RefUnwindSafe for SimulationSnapshot
impl Send for SimulationSnapshot
impl Sync for SimulationSnapshot
impl Unpin for SimulationSnapshot
impl UnsafeUnpin for SimulationSnapshot
impl UnwindSafe for SimulationSnapshot
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