struct Collector<FromT> {
result: Option<FromT>,
}
Expand description
Shim to implement a one-time ParallelExtend
using FromParallelIterator
.
Fields§
§result: Option<FromT>
Trait Implementations§
source§impl<T, FromT> ParallelExtend<T> for Collector<FromT>
impl<T, FromT> ParallelExtend<T> for Collector<FromT>
source§fn par_extend<I>(&mut self, pi: I)where
I: IntoParallelIterator<Item = T>,
fn par_extend<I>(&mut self, pi: I)where
I: IntoParallelIterator<Item = T>,
Extends an instance of the collection with the elements drawn
from the parallel iterator
par_iter
. Read moreAuto Trait Implementations§
impl<FromT> Freeze for Collector<FromT>where
FromT: Freeze,
impl<FromT> RefUnwindSafe for Collector<FromT>where
FromT: RefUnwindSafe,
impl<FromT> Send for Collector<FromT>where
FromT: Send,
impl<FromT> Sync for Collector<FromT>where
FromT: Sync,
impl<FromT> Unpin for Collector<FromT>where
FromT: Unpin,
impl<FromT> UnwindSafe for Collector<FromT>where
FromT: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more