1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use crate::time::ArchivedDuration;
use std::time::Duration;
impl PartialEq<Duration> for ArchivedDuration {
#[inline]
fn eq(&self, other: &Duration) -> bool {
self.as_nanos() == other.as_nanos() && self.as_secs() == other.as_secs()
}
}
impl PartialEq<ArchivedDuration> for Duration {
#[inline]
fn eq(&self, other: &ArchivedDuration) -> bool {
other.eq(self)
}
}