We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
iter
1 parent fc69e50 commit 1480eb9Copy full SHA for 1480eb9
src/iter/mod.rs
@@ -72,6 +72,12 @@
72
//! to mirror the unstable `std::ops::Try` with implementations for `Option` and
73
//! `Result`, where `Some`/`Ok` values will let those iterators continue, but
74
//! `None`/`Err` values will exit early.
75
+//!
76
+//! A note about object safety: It is currently _not_ possible to wrap
77
+//! a ParallelIterator (or any trait that depends on it) using a
78
+//! `Box<dyn ParallelIterator>` or other kind of dynamic allocation,
79
+//! because `ParallelIterator` is **not object-safe**.
80
+//! (This keeps the implementation simpler and allows extra optimizations.)
81
82
use self::plumbing::*;
83
use self::private::Try;
0 commit comments