ToHumanTimeString

Trait ToHumanTimeString 

Source
pub trait ToHumanTimeString {
    // Required methods
    fn to_human_time_string(&self) -> String;
    fn to_human_time_string_with_format<F, F1>(
        &self,
        time_fmt: F,
        res_fmt: F1,
    ) -> String
       where F: Fn(u128, &str) -> String,
             F1: Fn(String, String) -> String;
}

Required Methods§

Source

fn to_human_time_string(&self) -> String

Source

fn to_human_time_string_with_format<F, F1>( &self, time_fmt: F, res_fmt: F1, ) -> String
where F: Fn(u128, &str) -> String, F1: Fn(String, String) -> String,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ToHumanTimeString for Duration

Source§

fn to_human_time_string(&self) -> String

Source§

fn to_human_time_string_with_format<F, F1>( &self, time_fmt: F, res_fmt: F1, ) -> String
where F: Fn(u128, &str) -> String, F1: Fn(String, String) -> String,

Implementors§