Struct game_time::step::ConstantStep
[−]
[src]
pub struct ConstantStep { /* fields omitted */ }
A specific, constant time step.
Methods
impl ConstantStep
[src]
fn new(step: FloatDuration) -> ConstantStep
Construct a new ConstantStep
object with a set time step step
.
fn null_step() -> ConstantStep
Construct a new ConstantStep
that does not advance game time.
Trait Implementations
impl Debug for ConstantStep
[src]
impl Clone for ConstantStep
[src]
fn clone(&self) -> ConstantStep
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for ConstantStep
[src]
impl Default for ConstantStep
[src]
fn default() -> ConstantStep
Returns the "default value" for a type. Read more
impl PartialEq for ConstantStep
[src]
fn eq(&self, __arg_0: &ConstantStep) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ConstantStep) -> bool
This method tests for !=
.
impl TimeStep for ConstantStep
[src]
fn time_step(&self, _: &FloatDuration) -> FloatDuration
Compute the time step for the next frame.