pub trait Instant:
Sized
+ Ord
+ Copy
+ Clone
+ Debug
+ Send
+ Sync {
// Required methods
fn add(&self, duration: Duration) -> Self;
fn average(&self, other: Self) -> Self;
}
Expand description
A type representing an instant in time.
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.