pub struct Time<T> { /* private fields */ }
Implementations§
Source§impl<T> Time<T>where
T: Float + FromPrimitive,
impl<T> Time<T>where
T: Float + FromPrimitive,
pub fn frame(&self) -> usize
pub fn delta(&self) -> T
pub fn current(&self) -> T
pub fn start_time(&self) -> T
pub fn fps(&self) -> T
pub fn set_scale(&mut self, scale: T) -> &mut Self
pub fn scale(&self) -> T
pub fn fixed_delta(&self) -> T
pub fn set_fixed_delta(&mut self, fixed_delta: T) -> &mut Self
pub fn update(&mut self) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Time<T>where
T: Freeze,
impl<T> RefUnwindSafe for Time<T>where
T: RefUnwindSafe,
impl<T> Send for Time<T>where
T: Send,
impl<T> Sync for Time<T>where
T: Sync,
impl<T> Unpin for Time<T>where
T: Unpin,
impl<T> UnwindSafe for Time<T>where
T: 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> TryDefault for Twhere
T: Default,
impl<T> TryDefault for Twhere
T: Default,
Source§fn try_default() -> Result<T, String>
fn try_default() -> Result<T, String>
Tries to create the default.
Source§fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls
try_default
and panics on an error case.