/// Creates a parallel iterator that produces nothing. /// /// This admits no parallelism on its own, but it could be used for code that /// deals with generic parallel iterators. /// /// # Examples /// /// ``` /// use rayon::prelude::*; /// use rayon::iter::empty; /// /// let pi = (0..1234).into_par_iter() /// .chain(empty()) /// .chain(1234..10_000); /// /// assert_eq!(pi.count(), 10_000); /// ``` pubfn empty<T: Send>() -> Empty<T> {
Empty {
marker: PhantomData,
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.