Skip to main content

TimeUnit

Trait TimeUnit 

Source
pub trait TimeUnit: Sealed {
    type Repr: Copy + Clone + PartialEq + PartialOrd + Eq + Ord + Debug;
}
Expand description

A trait for time units.

Required Associated Types§

Source

type Repr: Copy + Clone + PartialEq + PartialOrd + Eq + Ord + Debug

The underlying representation of the time unit.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§