Skip to main content

PrettyDuration

Trait PrettyDuration 

Source
pub trait PrettyDuration {
    // Required methods
    fn pretty(&self) -> String;
    fn pretty_s(&self) -> String;
}

Required Methods§

Source

fn pretty(&self) -> String

Source

fn pretty_s(&self) -> String

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl PrettyDuration for Duration

Source§

fn pretty(&self) -> String

Pretty-prints a chrono::Duration in the form HH:MM:SS.xxx

Source§

fn pretty_s(&self) -> String

Pretty-prints a chrono::Duration in the form HH:MM:SS.xxx

Implementors§