fn add_assign(&mut self, other: std::time::Duration) {
    let delta: i64 = other.as_secs().try_into().unwrap();
    self.seconds += delta;
    self.nanos += other.subsec_nanos();
    while self.nanos >= 1_000_000_000 {
      self.seconds += 1;
      self.nanos -= 1_000_000_000;
    }
  }
/// Add the provided duration to the timestamp, in-place.
Add the provided duration to the timestamp, in-place.
Add the provided duration to the timestamp in - place .
fn add_assign(&mut self, other: std::time::Duration) {
    let delta: i64 = other.as_secs().try_into().unwrap();
    self.seconds += delta;
    self.nanos += other.subsec_nanos();
    while self.nanos >= 1_000_000_000 {
      self.seconds += 1;
      self.nanos -= 1_000_000_000;
    }
  }
fn add_assign ( & mut self , other : std :: time :: Duration ) { let delta : i64 = other . as_secs ( ) . try_into ( ) . unwrap ( ) ; self . seconds += delta ; self . nanos += other . subsec_nanos ( ) ; while self . nanos >= 1_000_000_000 { self . seconds += 1 ; self . nanos -= 1_000_000_000 ; } }
Add the provided duration to the timestamp, in-place.
Add the provided duration to the timestamp in - place .
&mut self
other
std::time::Duration
&mut self
other
std::time::Duration