pub trait NativeTime:
PartialOrd
+ Copy
+ Add<Duration, Output = Self>
+ ToOwned {
// Required methods
fn minimum() -> Self;
fn abs_diff(&self, other: &Self) -> Duration;
fn now() -> Self;
}
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.