[][src]Trait pipeprogress::stats::TimeOutput

pub trait TimeOutput {
    fn as_time(&self) -> String;
}

Trait for formatting time output adds a .as_time() method to u64

Example

Here is an example of it's usage

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

Required methods

fn as_time(&self) -> String

Loading content...

Implementations on Foreign Types

impl TimeOutput for u64[src]

Implementation for TimeOutput

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

Renders the u64 into a time string

Loading content...

Implementors

Loading content...