Hi, I'm trying to use the into_par_iter() and par_iter() to execute some implementations inside a Vec. I defined a trait called Analyzer and created two implementations, after setup these structs in a Vec<Box> I tried to iterate in this Vec using rayon, but the application returned the follow error.
note: the method
into_par_iter exists but the following trait bounds were not satisfied:
[std::boxed::Box<dyn Analyzer>] : rayon::iter::IntoParallelIterator
I supposed to implement this trait for Analyzer, but I don't know how. May some one help me? Here is the code. https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=884289b9716cd597d225f6bf1230cba0