Trait pied_piper::stats::Clock[][src]

pub trait Clock {
    fn as_clock(&self) -> String;
}
Expand description

The Clock trait adds a .as_clock() method to u64

Example

Here is an example of how to use it.

use pied_piper::stats::Clock;
assert_eq!(65_u64.as_clock(), String::from("0:01:05"))

Required methods

fn as_clock(&self) -> String[src]

Implementations on Foreign Types

impl Clock for u64[src]

fn as_clock(&self) -> String[src]

Renders the u64 into a time string

Implementors