[−][src]Struct specs_time::Time
Methods
impl<T> Time<T> where
T: Float,
[src]
T: Float,
pub fn new(
frame: usize,
delta: T,
fixed_delta: T,
scale: T,
current: T,
start_time: T,
fps: T
) -> Self
[src]
frame: usize,
delta: T,
fixed_delta: T,
scale: T,
current: T,
start_time: T,
fps: T
) -> Self
impl<T> Time<T> where
T: Float + FromPrimitive,
[src]
T: Float + FromPrimitive,
pub fn frame(&self) -> usize
[src]
pub fn delta(&self) -> T
[src]
pub fn current(&self) -> T
[src]
pub fn start_time(&self) -> T
[src]
pub fn fps(&self) -> T
[src]
pub fn set_scale(&mut self, scale: T) -> &mut Self
[src]
pub fn scale(&self) -> T
[src]
pub fn fixed_delta(&self) -> T
[src]
pub fn set_fixed_delta(&mut self, fixed_delta: T) -> &mut Self
[src]
pub fn update(&mut self) -> &mut Self
[src]
Trait Implementations
impl<T> Default for Time<T> where
T: Float + FromPrimitive,
[src]
T: Float + FromPrimitive,
impl<T: Clone> Clone for Time<T>
[src]
fn clone(&self) -> Time<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for Time<T>
[src]
Auto Trait Implementations
impl<T> Send for Time<T> where
T: Send,
T: Send,
impl<T> Unpin for Time<T> where
T: Unpin,
T: Unpin,
impl<T> Sync for Time<T> where
T: Sync,
T: Sync,
impl<T> UnwindSafe for Time<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for Time<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Resource for T where
T: Any + Send + Sync,
T: Any + Send + Sync,
impl<T> TryDefault for T where
T: Default,
[src]
T: Default,
fn try_default() -> Result<T, String>
[src]
fn unwrap_default() -> Self
[src]
Calls try_default
and panics on an error case.
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,