pub struct GameLoopState { /* private fields */ }Expand description
State of the game loop accumulator
Implementations§
Source§impl GameLoopState
impl GameLoopState
Sourcepub const fn total_time(&self) -> f32
pub const fn total_time(&self) -> f32
Returns the total elapsed time
Sourcepub const fn frame_count(&self) -> u64
pub const fn frame_count(&self) -> u64
Returns the frame count
Sourcepub const fn tick_count(&self) -> u64
pub const fn tick_count(&self) -> u64
Returns the physics tick count
Trait Implementations§
Source§impl Clone for GameLoopState
impl Clone for GameLoopState
Source§fn clone(&self) -> GameLoopState
fn clone(&self) -> GameLoopState
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 GameLoopState
impl Debug for GameLoopState
Source§impl Default for GameLoopState
impl Default for GameLoopState
Source§impl<'de> Deserialize<'de> for GameLoopState
impl<'de> Deserialize<'de> for GameLoopState
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 PartialEq for GameLoopState
impl PartialEq for GameLoopState
Source§impl Serialize for GameLoopState
impl Serialize for GameLoopState
impl StructuralPartialEq for GameLoopState
Auto Trait Implementations§
impl Freeze for GameLoopState
impl RefUnwindSafe for GameLoopState
impl Send for GameLoopState
impl Sync for GameLoopState
impl Unpin for GameLoopState
impl UnwindSafe for GameLoopState
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