Struct MapInit
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct MapInit<I, INIT, F> { /* private fields */ }
MapInit is an iterator that transforms the elements of an underlying iterator.
This struct is created by the map_init() method on ParallelIterator
Trait Implementations
impl<I, INIT, T, F, R> IndexedParallelIterator for MapInit<I, INIT, F>
where
I: IndexedParallelIterator,
INIT: Fn() -> T + Sync + Send,
F: Fn(&mut T, I::Item) -> R + Sync + Send,
R: Send,
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, INIT, T, F, R> ParallelIterator for MapInit<I, INIT, F>
where
I: ParallelIterator,
INIT: Fn() -> T + Sync + Send,
F: Fn(&mut T, I::Item) -> R + Sync + Send,
R: Send,
type Item = R;fn drive_unindexed<C>(self, consumer: C) -> C::Result where C: UnindexedConsumer<Self::Item>,fn opt_len(&self) -> Option<usize>
impl<I: Clone, INIT: Clone, F: Clone> Clone for MapInit<I, INIT, F>
fn clone(&self) -> MapInit<I, INIT, F>
impl<I: Debug, INIT, F> Debug for MapInit<I, INIT, F>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<I, INIT, F> Freeze for MapInit<I, INIT, F>
where
I: Freeze,
INIT: Freeze,
F: Freeze,
impl<I, INIT, F> RefUnwindSafe for MapInit<I, INIT, F>
where
I: RefUnwindSafe,
INIT: RefUnwindSafe,
F: RefUnwindSafe,
impl<I, INIT, F> Send for MapInit<I, INIT, F>
where
I: Send,
INIT: Send,
F: Send,
impl<I, INIT, F> Sync for MapInit<I, INIT, F>
where
I: Sync,
INIT: Sync,
F: Sync,
impl<I, INIT, F> Unpin for MapInit<I, INIT, F>
where
I: Unpin,
INIT: Unpin,
F: Unpin,
impl<I, INIT, F> UnsafeUnpin for MapInit<I, INIT, F>
where
I: UnsafeUnpin,
INIT: UnsafeUnpin,
F: UnsafeUnpin,
impl<I, INIT, F> UnwindSafe for MapInit<I, INIT, F>
where
I: UnwindSafe,
INIT: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for MapInit<I, INIT, F>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for MapInit<I, INIT, F>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for MapInit<I, INIT, F>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for MapInit<I, INIT, F>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for MapInit<I, INIT, F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for MapInit<I, INIT, F>
impl<T> IntoParallelIterator for MapInit<I, INIT, F>
where
T: ParallelIterator,
type Iter = T;type Item = <T as ParallelIterator>::Item;fn into_par_iter(self) -> T
impl<T> Pointable for MapInit<I, INIT, F>
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> ToOwned for MapInit<I, INIT, F>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for MapInit<I, INIT, F>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for MapInit<I, INIT, F>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for MapInit<I, INIT, F>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>