fn clone_mocksubschedulers_into_multischeduler(
        sub_schedulers: &Vec<Box<MockSubScheduler>>,
    ) -> MultiScheduler {
        let sub_schedulers = sub_schedulers
            .iter()
            .map(|sub_scheduler| sub_scheduler.clone() as Box<dyn Scheduler + Send>)
            .collect();
        MultiScheduler::new(sub_schedulers, &mut MockSubSchedulerHandler::new())
            .expect("Failed to create scheduler")
    }
/// The caller may want to keep the mock sub-schedulers to check their properties after the
/// multi-scheduler performs certain actions; the mock sub-schedulers also need to be cast as
/// generic Schedulers for the MultiScheduler.
The caller may want to keep the mock sub-schedulers to check their properties after the
multi-scheduler performs certain actions; the mock sub-schedulers also need to be cast as
generic Schedulers for the MultiScheduler.
The caller may want to keep the mock sub - schedulers to check their properties after the multi - scheduler performs certain actions ; the mock sub - schedulers also need to be cast as generic Schedulers for the MultiScheduler .
fn clone_mocksubschedulers_into_multischeduler(
        sub_schedulers: &Vec<Box<MockSubScheduler>>,
    ) -> MultiScheduler {
        let sub_schedulers = sub_schedulers
            .iter()
            .map(|sub_scheduler| sub_scheduler.clone() as Box<dyn Scheduler + Send>)
            .collect();
        MultiScheduler::new(sub_schedulers, &mut MockSubSchedulerHandler::new())
            .expect("Failed to create scheduler")
    }
fn clone_mocksubschedulers_into_multischeduler ( sub_schedulers : & Vec < Box < MockSubScheduler > > , ) -> MultiScheduler { let sub_schedulers = sub_schedulers . iter ( ) . map ( | sub_scheduler | sub_scheduler . clone ( ) as Box < dyn Scheduler + Send > ) . collect ( ) ; MultiScheduler :: new ( sub_schedulers , & mut MockSubSchedulerHandler :: new ( ) ) . expect ( " " ) }
The caller may want to keep the mock sub-schedulers to check their properties after the
multi-scheduler performs certain actions; the mock sub-schedulers also need to be cast as
generic Schedulers for the MultiScheduler.
The caller may want to keep the mock sub - schedulers to check their properties after the multi - scheduler performs certain actions ; the mock sub - schedulers also need to be cast as generic Schedulers for the MultiScheduler .
sub_schedulers
&Vec<Box<MockSubScheduler>>
sub_schedulers
&Vec<Box<MockSubScheduler>>