swc_ecma_utils::parallel

Trait Items

source
pub trait Items:
    Sized
    + IntoIterator<Item = Self::Elem>
    + Send
    + Sealed {
    type Elem: Send + Sync;

    // Required methods
    fn len(&self) -> usize;
    fn split_at(self, idx: usize) -> (Self, Self);
}
Expand description

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

Required Associated Types§

Required Methods§

source

fn len(&self) -> usize

source

fn split_at(self, idx: usize) -> (Self, Self)

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

source§

type Elem = &'a T

source§

fn len(&self) -> usize

source§

fn split_at(self, at: usize) -> (Self, Self)

source§

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

source§

type Elem = &'a mut T

source§

fn len(&self) -> usize

source§

fn split_at(self, at: usize) -> (Self, Self)

source§

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

source§

type Elem = T

source§

fn len(&self) -> usize

source§

fn split_at(self, at: usize) -> (Self, Self)

Implementors§