Struct Zip
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct Zip<A, B> { /* private fields */ }
Zip is an iterator that zips up a and b into a single iterator
of pairs. This struct is created by the zip() method on
IndexedParallelIterator
Trait Implementations
impl<A, B> IndexedParallelIterator for Zip<A, B>
where
A: IndexedParallelIterator,
B: 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<A, B> ParallelIterator for Zip<A, B>
where
A: IndexedParallelIterator,
B: IndexedParallelIterator,
type Item = (<A as ParallelIterator>::Item, <B as ParallelIterator>::Item);fn drive_unindexed<C>(self, consumer: C) -> C::Result where C: UnindexedConsumer<Self::Item>,fn opt_len(&self) -> Option<usize>
impl<A: Clone, B: Clone> Clone for Zip<A, B>
fn clone(&self) -> Self
impl<A: Debug, B: Debug> Debug for Zip<A, B>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<A, B> Freeze for Zip<A, B>
where
A: Freeze,
B: Freeze,
impl<A, B> RefUnwindSafe for Zip<A, B>
where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Zip<A, B>
where
A: Send,
B: Send,
impl<A, B> Sync for Zip<A, B>
where
A: Sync,
B: Sync,
impl<A, B> Unpin for Zip<A, B>
where
A: Unpin,
B: Unpin,
impl<A, B> UnsafeUnpin for Zip<A, B>
where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for Zip<A, B>
where
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
impl<T> Any for Zip<A, B>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Zip<A, B>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Zip<A, B>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Zip<A, B>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Zip<A, B>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for Zip<A, B>
impl<T> IntoParallelIterator for Zip<A, B>
where
T: ParallelIterator,
type Iter = T;type Item = <T as ParallelIterator>::Item;fn into_par_iter(self) -> T
impl<T> Pointable for Zip<A, B>
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 Zip<A, B>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Zip<A, B>
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 Zip<A, B>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Zip<A, B>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>