pub struct Snapshot<S>where
S: Copy,{
pub tick: u64,
pub state: S,
}Expand description
A snapshot of the predicted state at a particular tick.
Fields§
§tick: u64Simulation tick this snapshot represents.
state: SConcrete state (position, velocity, health — game-specific).
Trait Implementations§
impl<S> Copy for Snapshot<S>
impl<S> StructuralPartialEq for Snapshot<S>
Auto Trait Implementations§
impl<S> Freeze for Snapshot<S>where
S: Freeze,
impl<S> RefUnwindSafe for Snapshot<S>where
S: RefUnwindSafe,
impl<S> Send for Snapshot<S>where
S: Send,
impl<S> Sync for Snapshot<S>where
S: Sync,
impl<S> Unpin for Snapshot<S>where
S: Unpin,
impl<S> UnsafeUnpin for Snapshot<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Snapshot<S>where
S: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more