[][src]Trait awoo::TimeGenerator

pub trait TimeGenerator {
type Time;
    fn tick(&mut self) -> Self::Time;
fn untick(&mut self) -> Self::Time;
fn reset(&mut self); }

A type that can generate time when asked.

Associated Types

type Time

Loading content...

Required methods

fn tick(&mut self) -> Self::Time

Tick time forward.

fn untick(&mut self) -> Self::Time

Tick time backwards.

fn reset(&mut self)

Reset the generator and time to their initial values.

Loading content...

Implementors

Loading content...