Trait swc_ecma_utils::parallel::Items

source ·
pub trait Items: IntoParallelIterator<Iter = Self::ParIter> + IntoIterator<Item = Self::Elem> {
    type Elem: Send + Sync;
    type ParIter: ParallelIterator<Item = Self::Elem> + IndexedParallelIterator;

    // Required method
    fn len(&self) -> usize;
}
Expand description

This is considered as a private type and it’s NOT A PUBLIC API.

Required Associated Types§

source

type Elem: Send + Sync

source

type ParIter: ParallelIterator<Item = Self::Elem> + IndexedParallelIterator

Required Methods§

source

fn len(&self) -> usize

Implementations on Foreign Types§

source§

impl<'a, T> Items for &'a [T]
where T: Send + Sync,

§

type Elem = &'a T

§

type ParIter = Iter<'a, T>

source§

fn len(&self) -> usize

source§

impl<'a, T> Items for &'a mut [T]
where T: Send + Sync,

§

type Elem = &'a mut T

§

type ParIter = IterMut<'a, T>

source§

fn len(&self) -> usize

source§

impl<'a, T> Items for &'a mut Vec<T>
where T: Send + Sync,

§

type Elem = &'a mut T

§

type ParIter = IterMut<'a, T>

source§

fn len(&self) -> usize

source§

impl<T> Items for Vec<T>
where T: Send + Sync,

§

type Elem = T

§

type ParIter = IntoIter<T>

source§

fn len(&self) -> usize

Implementors§