fn trigger_timers_for<F: FnMut(&mut Self, Id)>(
            &mut self,
            duration: Duration,
            f: F,
        ) -> Vec<Id> {
            let instant = self.as_mut().now().saturating_add(duration);
            // We know the call to `self.trigger_timers_until_instant` will not
            // panic because we provide an instant that is greater than or equal
            // to the current time.
            self.trigger_timers_until_instant(instant, f)
        }
/// Skips the current time forward by `duration`, triggering all timers
/// until then, inclusive, by calling `f` on them.
///
/// Returns the timers which were triggered.
Skips the current time forward by `duration`, triggering all timers
until then, inclusive, by calling `f` on them.

Returns the timers which were triggered.
Skips the current time forward by ` duration ` triggering all timers until then inclusive by calling ` f ` on them . Returns the timers which were triggered .
fn trigger_timers_for<F: FnMut(&mut Self, Id)>(
            &mut self,
            duration: Duration,
            f: F,
        ) -> Vec<Id> {
            let instant = self.as_mut().now().saturating_add(duration);
            // We know the call to `self.trigger_timers_until_instant` will not
            // panic because we provide an instant that is greater than or equal
            // to the current time.
            self.trigger_timers_until_instant(instant, f)
        }
fn trigger_timers_for < F : FnMut ( & mut Self , Id ) > ( & mut self , duration : Duration , f : F , ) -> Vec < Id > { let instant = self . as_mut ( ) . now ( ) . saturating_add ( duration ) ; // We know the call to `self.trigger_timers_until_instant` will not // panic because we provide an instant that is greater than or equal // to the current time. self . trigger_timers_until_instant ( instant , f ) }
Skips the current time forward by `duration`, triggering all timers
until then, inclusive, by calling `f` on them.
Skips the current time forward by ` duration ` triggering all timers until then inclusive by calling ` f ` on them .
&mut self
duration
Duration
f
F
&mut self
duration
Duration
f
F