/// Skip current time forward until `instant`, triggering all timers
/// until then, inclusive.
///
/// Returns the number of timers triggered.
///
/// # Panics
///
/// Panics if `instant` is in the past.
Skip current time forward until `instant`, triggering all timers
until then, inclusive.

Returns the number of timers triggered.
Skip current time forward until ` instant ` triggering all timers until then inclusive . Returns the number of timers triggered .
fn trigger_timers_until_instant(&mut self, instant: DummyInstant) -> usize {
            assert!(instant > self.as_mut().now());
            let mut timers_fired = 0;
            while let Some(tmr) = self.as_mut().timers.peek() {
                if tmr.0 > instant {
                    break;
                }
                assert!(self.trigger_next_timer());
                timers_fired += 1;
            }
            assert!(self.as_mut().now() <= instant);
            self.as_mut().instant.time = instant;
            timers_fired
        }
fn trigger_timers_until_instant ( & mut self , instant : DummyInstant ) -> usize { assert ! ( instant self as_mut ( ) now ( ) ) ; let mut timers_fired = 0 ; while let Some ( tmr ) = self . as_mut ( ) . timers . peek ( ) { if tmr . 0 > instant { break ; } assert ! ( self trigger_next_timer ( ) ) ; timers_fired += 1 ; } assert ! ( self as_mut ( ) now ( ) instant ) ; self . as_mut ( ) . instant . time = instant ; timers_fired }
Skip current time forward until `instant`, triggering all timers
until then, inclusive.
Skip current time forward until ` instant ` triggering all timers until then inclusive .
&mut self
instant
DummyInstant
panics
Panics if `instant` is in the past.
Panics if ` instant ` is in the past .