Struct quicksilver::Timer [−][src]
pub struct Timer { /* fields omitted */ }
A structure that allows accumulation of actions in a loop
Methods
impl Timer
[src]
impl Timer
pub fn new() -> Timer
[src]
pub fn new() -> Timer
Create a timer that will tick at the first opportunity
pub fn tick<F>(&mut self, action: F) where
F: FnMut() -> Duration,
[src]
pub fn tick<F>(&mut self, action: F) where
F: FnMut() -> Duration,
For as many times as appopriate, update
Trait Implementations
impl Clone for Timer
[src]
impl Clone for Timer
fn clone(&self) -> Timer
[src]
fn clone(&self) -> Timer
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 Copy for Timer
[src]
impl Copy for Timer
impl Debug for Timer
[src]
impl Debug for Timer