Lines Matching defs:Instant
34 pub struct Instant { struct
35 std: std::time::Instant, argument
38 impl Instant { implementation
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()
149 pub fn checked_add(&self, duration: Duration) -> Option<Instant> { in checked_add()
156 pub fn checked_sub(&self, duration: Duration) -> Option<Instant> { in checked_sub()
161 impl From<std::time::Instant> for Instant { implementation
162 fn from(time: std::time::Instant) -> Instant { in from()
167 impl From<Instant> for std::time::Instant { implementation
168 fn from(time: Instant) -> std::time::Instant { in from()
173 impl ops::Add<Duration> for Instant { implementation
176 fn add(self, other: Duration) -> Instant { in add()
181 impl ops::AddAssign<Duration> for Instant { implementation
187 impl ops::Sub for Instant { implementation
195 impl ops::Sub<Duration> for Instant { implementation
198 fn sub(self, rhs: Duration) -> Instant { in sub()
203 impl ops::SubAssign<Duration> for Instant { implementation
209 impl fmt::Debug for Instant { implementation