Skip to main content

TimeOutput

Trait TimeOutput 

Source
pub trait TimeOutput {
    // Required method
    fn as_time(&self) -> String;
}
Expand description

The TimeOutput trait adds a as_time() method to u64

§Example

Here is an example of how to use it.

use flo_pv::stats::TimeOutput;
assert_eq!(65_u64.as_time(), String::from("0:01:05"));

Required Methods§

Source

fn as_time(&self) -> String

Implementations on Foreign Types§

Source§

impl TimeOutput for u64

Source§

fn as_time(&self) -> String

Renders the u64 into a time string.

Implementors§