Lines Matching defs:Instant
34 pub struct Instant { struct
35 std: std::time::Instant, argument
38 impl Instant { impl
53 pub fn from_std(std: std::time::Instant) -> Instant { in from_std()
66 pub fn into_std(self) -> std::time::Instant { in into_std()
141 pub fn checked_add(&self, duration: Duration) -> Option<Instant> { in checked_add()
148 pub fn checked_sub(&self, duration: Duration) -> Option<Instant> { in checked_sub()
153 impl From<std::time::Instant> for Instant { implementation
154 fn from(time: std::time::Instant) -> Instant { in from()
159 impl From<Instant> for std::time::Instant { implementation
160 fn from(time: Instant) -> std::time::Instant { in from()
165 impl ops::Add<Duration> for Instant { implementation
168 fn add(self, other: Duration) -> Instant { in add()
173 impl ops::AddAssign<Duration> for Instant { implementation
179 impl ops::Sub for Instant { implementation
187 impl ops::Sub<Duration> for Instant { implementation
190 fn sub(self, rhs: Duration) -> Instant { in sub()
195 impl ops::SubAssign<Duration> for Instant { implementation
201 impl fmt::Debug for Instant { implementation