pub struct TickContext {
pub tick: u64,
pub batch_index: u32,
pub dt: f32,
}Expand description
Context for one scheduled fixed update, produced by TickBatch::ticks.
tick is the absolute scheduled count at this update, not an execution count.
IDs begin at 1 after construction/reset and wrap from u64::MAX to 0. Reset
reuses IDs; they are not globally unique or an execution/commit acknowledgment.
See FixedClock::advance_batch for a runnable consumer.
Fields§
§tick: u64Scheduled ID, including earlier issued work even if it was never executed.
batch_index: u32Zero-based position in the original batch, independent of iteration order.
dt: f32Fixed simulation delta in seconds, identical to the batch’s FrameStep::dt.
Trait Implementations§
Source§impl Clone for TickContext
impl Clone for TickContext
Source§fn clone(&self) -> TickContext
fn clone(&self) -> TickContext
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 TickContext
impl Debug for TickContext
Source§impl PartialEq for TickContext
impl PartialEq for TickContext
impl Copy for TickContext
impl StructuralPartialEq for TickContext
Auto Trait Implementations§
impl Freeze for TickContext
impl RefUnwindSafe for TickContext
impl Send for TickContext
impl Sync for TickContext
impl Unpin for TickContext
impl UnwindSafe for TickContext
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