pub struct SimulationStats {
pub init_calls: usize,
pub update_calls: usize,
pub view_calls: usize,
pub commands_returned: usize,
pub quit_requested: bool,
}Expand description
Statistics tracked during simulation.
Fields§
§init_calls: usizeNumber of times init() was called.
update_calls: usizeNumber of times update() was called.
view_calls: usizeNumber of times view() was called.
commands_returned: usizeCommands that were returned from init/update.
quit_requested: boolWhether quit was requested.
Trait Implementations§
Source§impl Clone for SimulationStats
impl Clone for SimulationStats
Source§fn clone(&self) -> SimulationStats
fn clone(&self) -> SimulationStats
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 SimulationStats
impl Debug for SimulationStats
Source§impl Default for SimulationStats
impl Default for SimulationStats
Source§fn default() -> SimulationStats
fn default() -> SimulationStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SimulationStats
impl RefUnwindSafe for SimulationStats
impl Send for SimulationStats
impl Sync for SimulationStats
impl Unpin for SimulationStats
impl UnwindSafe for SimulationStats
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