pub trait UnitFormat: Sealed + 'static { }Expand description
How the time unit adapters write numbers: as i64, f64 or String.
This trait is sealed.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
impl UnitFormat for String
Writes whole units as string, the fraction of a unit is truncated like
for i64.
impl UnitFormat for f64
Writes units as float with the fraction of a unit.
impl UnitFormat for i64
Writes whole units as integer, the fraction of a unit is truncated (towards the past for timestamps, towards zero for durations).