pub struct UpdateInfo {
pub last_time: Instant,
pub current_time: Instant,
pub dt: f64,
pub actual_dt: f64,
}Expand description
Information about the time since the last frame.
Fields§
§last_time: InstantThe beginning of the last frame.
current_time: InstantThe beginning of the current frame.
dt: f64The time in seconds that has passed since the last frame.
actual_dt: f64The time in seconds that the last frame took without the sleeping to reach target fps.
Trait Implementations§
Source§impl Clone for UpdateInfo
impl Clone for UpdateInfo
Source§fn clone(&self) -> UpdateInfo
fn clone(&self) -> UpdateInfo
Returns a copy 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 UpdateInfo
impl Debug for UpdateInfo
Source§impl PartialEq for UpdateInfo
impl PartialEq for UpdateInfo
impl Copy for UpdateInfo
impl StructuralPartialEq for UpdateInfo
Auto Trait Implementations§
impl Freeze for UpdateInfo
impl RefUnwindSafe for UpdateInfo
impl Send for UpdateInfo
impl Sync for UpdateInfo
impl Unpin for UpdateInfo
impl UnwindSafe for UpdateInfo
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