Struct specs_time::Time [−][src]
pub struct Time<T> { /* fields omitted */ }
Methods
impl<T> Time<T> where
T: Float + FromPrimitive,
[src]
impl<T> Time<T> where
T: Float + FromPrimitive,
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn frame(&self) -> usize
[src]
pub fn frame(&self) -> usize
pub fn delta(&self) -> T
[src]
pub fn delta(&self) -> T
pub fn current(&self) -> T
[src]
pub fn current(&self) -> T
pub fn total(&self) -> T
[src]
pub fn total(&self) -> T
pub fn fps(&self) -> T
[src]
pub fn fps(&self) -> T
pub fn set_scale(&mut self, scale: T)
[src]
pub fn set_scale(&mut self, scale: T)
pub fn scale(&self) -> T
[src]
pub fn scale(&self) -> T
pub fn fixed_delta(&self) -> T
[src]
pub fn fixed_delta(&self) -> T
pub fn set_fixed_delta(&mut self, fixed_delta: T)
[src]
pub fn set_fixed_delta(&mut self, fixed_delta: T)
pub fn update(&mut self, current_time: T) -> &mut Self
[src]
pub fn update(&mut self, current_time: T) -> &mut Self
Trait Implementations
impl<T: Debug> Debug for Time<T>
[src]
impl<T: Debug> Debug for Time<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Clone> Clone for Time<T>
[src]
impl<T: Clone> Clone for Time<T>
fn clone(&self) -> Time<T>
[src]
fn clone(&self) -> Time<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T> Default for Time<T> where
T: Float + FromPrimitive,
[src]
impl<T> Default for Time<T> where
T: Float + FromPrimitive,