Trait float_duration::duration::TimePoint
[−]
[src]
pub trait TimePoint<Rhs = Self> {
type Error;
fn float_duration_since(
self,
rhs: Rhs
) -> Result<FloatDuration, Self::Error>;
}A specific point in time.
Types implementing TimePoint can have a FloatDuration computed between them
via float_duration_since in either direction.
Associated Types
type Error
The type returned if there is an error computing the duration.
Required Methods
fn float_duration_since(self, rhs: Rhs) -> Result<FloatDuration, Self::Error>
The amount of time between two TimePoints.
Implementors
impl<Tz: TimeZone> TimePoint for DateTime<Tz>impl<Tz: TimeZone> TimePoint for Date<Tz>impl TimePoint for NaiveDateimpl TimePoint for NaiveTimeimpl TimePoint for NaiveDateTimeimpl TimePoint for Instantimpl TimePoint for SystemTime