Struct PanicFuse
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct PanicFuse<I> { /* private fields */ }
PanicFuse is an adaptor that wraps an iterator with a fuse in case
of panics, to halt all threads as soon as possible.
This struct is created by the panic_fuse() method on ParallelIterator
Trait Implementations
impl<I> IndexedParallelIterator for PanicFuse<I>
where
I: IndexedParallelIterator,
fn drive<C>(self, consumer: C) -> C::Result where C: Consumer<Self::Item>,fn len(&self) -> usizefn with_producer<CB>(self, callback: CB) -> CB::Output where CB: ProducerCallback<Self::Item>,
impl<I> ParallelIterator for PanicFuse<I>
where
I: ParallelIterator,
type Item = <I as ParallelIterator>::Item;fn drive_unindexed<C>(self, consumer: C) -> C::Result where C: UnindexedConsumer<Self::Item>,fn opt_len(&self) -> Option<usize>
impl<I: Clone> Clone for PanicFuse<I>
fn clone(&self) -> Self
impl<I: Debug> Debug for PanicFuse<I>
fn fmt(&self, f: &mut Formatter<'_>) -> Result