Skip to main content

UnitFormat

Trait UnitFormat 

Source
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§

Source§

impl UnitFormat for String

Writes whole units as string, the fraction of a unit is truncated like for i64.

Source§

impl UnitFormat for f64

Writes units as float with the fraction of a unit.

Source§

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).

Implementors§