fn trigger_timers_until_instant<F: FnMut(&mut Self, Id)>(
            &mut self,
            instant: DummyInstant,
            mut f: F,
        ) -> Vec<Id> {
            assert!(instant >= self.as_mut().now());
            let mut timers = Vec::new();

            while self
                .as_mut()
                .timers
                .peek()
                .map(|InstantAndData(i, _id)| i <= &instant)
                .unwrap_or(false)
            {
                timers.push(self.trigger_next_timer(&mut f).unwrap())
            }

            assert!(self.as_mut().now() <= instant);
            self.as_mut().instant.time = instant;

            timers
        }
/// Skips the current time forward until `instant`, triggering all
/// timers until then, inclusive, by calling `f` on them.
///
/// Returns the timers which were triggered.
///
/// # Panics
///
/// Panics if `instant` is in the past.
Skips the current time forward until `instant`, triggering all
timers until then, inclusive, by calling `f` on them.

Returns the timers which were triggered.
Skips the current time forward until ` instant ` triggering all timers until then inclusive by calling ` f ` on them . Returns the timers which were triggered .
fn trigger_timers_until_instant<F: FnMut(&mut Self, Id)>(
            &mut self,
            instant: DummyInstant,
            mut f: F,
        ) -> Vec<Id> {
            assert!(instant >= self.as_mut().now());
            let mut timers = Vec::new();
            while self
                .as_mut()
                .timers
                .peek()
                .map(|InstantAndData(i, _id)| i <= &instant)
                .unwrap_or(false)
            {
                timers.push(self.trigger_next_timer(&mut f).unwrap())
            }
            assert!(self.as_mut().now() <= instant);
            self.as_mut().instant.time = instant;
            timers
        }
fn trigger_timers_until_instant < F : FnMut ( & mut Self , Id ) > ( & mut self , instant : DummyInstant , mut f : F , ) -> Vec < Id > { assert ! ( instant self as_mut ( ) now ( ) ) ; let mut timers = Vec :: new ( ) ; while self . as_mut ( ) . timers . peek ( ) . map ( | InstantAndData ( i , _id ) | i <= & instant ) . unwrap_or ( false ) { timers . push ( self . trigger_next_timer ( & mut f ) . unwrap ( ) ) } assert ! ( self as_mut ( ) now ( ) instant ) ; self . as_mut ( ) . instant . time = instant ; timers }
Skips the current time forward until `instant`, triggering all
timers until then, inclusive, by calling `f` on them.
Skips the current time forward until ` instant ` triggering all timers until then inclusive by calling ` f ` on them .
&mut self
instant
DummyInstant
f
F
&mut self
instant
DummyInstant
f
F
panics
Panics if `instant` is in the past.
Panics if ` instant ` is in the past .