pub struct PhaseContext {
pub tick: u64,
pub dt: f64,
}Expand description
Context passed to every system phase.
Fields§
§tick: u64Current simulation tick number.
dt: f64Time step for this tick (seconds).
Trait Implementations§
Source§impl Clone for PhaseContext
impl Clone for PhaseContext
Source§fn clone(&self) -> PhaseContext
fn clone(&self) -> PhaseContext
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 PhaseContext
impl Debug for PhaseContext
impl Copy for PhaseContext
Auto Trait Implementations§
impl Freeze for PhaseContext
impl RefUnwindSafe for PhaseContext
impl Send for PhaseContext
impl Sync for PhaseContext
impl Unpin for PhaseContext
impl UnsafeUnpin for PhaseContext
impl UnwindSafe for PhaseContext
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