swc_ecma_utils::parallel

Trait 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,

source§

type Elem = &'a T

source§

type ParIter = Iter<'a, T>

source§

fn len(&self) -> usize

source§

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

source§

type Elem = &'a mut T

source§

type ParIter = IterMut<'a, T>

source§

fn len(&self) -> usize

source§

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

source§

type Elem = &'a mut T

source§

type ParIter = IterMut<'a, T>

source§

fn len(&self) -> usize

source§

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

source§

type Elem = T

source§

type ParIter = IntoIter<T>

source§

fn len(&self) -> usize

Implementors§