pub struct CurrentTick(pub u64);Expand description
World resource mirroring the current simulation tick.
Kept in sync by Simulation::step.
Lets phases that don’t receive a PhaseContext (reposition
strategies, custom World consumers) compute rolling-window queries
against ArrivalLog without plumbing tick through their
signatures.
Tuple Fields§
§0: u64Tick value at the start of the last step() entry.
Trait Implementations§
Source§impl Clone for CurrentTick
impl Clone for CurrentTick
Source§fn clone(&self) -> CurrentTick
fn clone(&self) -> CurrentTick
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 CurrentTick
impl Debug for CurrentTick
Source§impl Default for CurrentTick
impl Default for CurrentTick
Source§fn default() -> CurrentTick
fn default() -> CurrentTick
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CurrentTick
impl<'de> Deserialize<'de> for CurrentTick
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CurrentTick
impl Serialize for CurrentTick
impl Copy for CurrentTick
Auto Trait Implementations§
impl Freeze for CurrentTick
impl RefUnwindSafe for CurrentTick
impl Send for CurrentTick
impl Sync for CurrentTick
impl Unpin for CurrentTick
impl UnsafeUnpin for CurrentTick
impl UnwindSafe for CurrentTick
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