pub struct Step {
pub tick: u64,
pub dt: Nanos,
pub sim_time: Nanos,
}Expand description
One simulation step.
Fields§
§tick: u64The tick this step advances, counted from the loop’s construction and monotonically increasing across the whole run.
dt: NanosThe fixed timestep, repeated here so a world function needs only the step.
sim_time: NanosThe simulation clock at the start of this step: tick × dt,
saturating. Defined rather than measured, so it is exact whatever
the wall clock does.
Trait Implementations§
impl Copy for Step
impl Eq for Step
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
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