fn expect_next(events: &mut Vec<EventMatcher>, expected: Vec<EventMatcher>) {
    let num_events: usize = min(expected.len(), events.len());
    let mut next: Vec<EventMatcher> = events.drain(0..num_events).collect();
    next.sort_unstable();
    assert_eq!(next, expected);
}
/// Drains the required number of events, sorts them and compares them
/// to the expected events
Drains the required number of events, sorts them and compares them
to the expected events
Drains the required number of events sorts them and compares them to the expected events
fn expect_next(events: &mut Vec<EventMatcher>, expected: Vec<EventMatcher>) {
    let num_events: usize = min(expected.len(), events.len());
    let mut next: Vec<EventMatcher> = events.drain(0..num_events).collect();
    next.sort_unstable();
    assert_eq!(next, expected);
}
fn expect_next ( events : & mut Vec < EventMatcher > , expected : Vec < EventMatcher > ) { let num_events : usize = min ( expected . len ( ) , events . len ( ) ) ; let mut next : Vec < EventMatcher > = events . drain ( 0 .. num_events ) . collect ( ) ; next . sort_unstable ( ) ; assert_eq ! ( next expected ) ; }
Drains the required number of events, sorts them and compares them
to the expected events
Drains the required number of events sorts them and compares them to the expected events
events
&mut Vec<EventMatcher>
expected
Vec<EventMatcher>
events
&mut Vec<EventMatcher>
expected
Vec<EventMatcher>