humfmt 0.2.0

Ergonomic human-readable formatting toolkit for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::common::sealed::Sealed;

pub trait DurationLike: Sealed + Copy {
    fn into_duration(self) -> core::time::Duration;
}

impl Sealed for core::time::Duration {}

impl DurationLike for core::time::Duration {
    fn into_duration(self) -> core::time::Duration {
        self
    }
}