pub struct FixedStep {
pub index: u64,
pub delta: Duration,
pub steps: u64,
}Expand description
Fixed simulation substep identity while FixedUpdate runs.
Fields§
§index: u64Index of the first fixed interval represented by this run.
delta: DurationSimulation time represented by this run.
steps: u64Number of fixed intervals represented by this run.
This is one for ordinary fixed updates. A coalesced update represents more than one interval and advances the next index by this amount.
Trait Implementations§
impl Copy for FixedStep
impl Eq for FixedStep
Source§impl Ord for FixedStep
impl Ord for FixedStep
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for FixedStep
impl PartialOrd for FixedStep
impl StructuralPartialEq for FixedStep
Auto Trait Implementations§
impl Freeze for FixedStep
impl RefUnwindSafe for FixedStep
impl Send for FixedStep
impl Sync for FixedStep
impl Unpin for FixedStep
impl UnsafeUnpin for FixedStep
impl UnwindSafe for FixedStep
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