swc_ecma_transforms::perf

Trait IntoItems

pub trait IntoItems: Sealed {
    type Elem;
    type Items: Items<Elem = Self::Elem>;

    // Required method
    fn into_items(self) -> Self::Items;
}

Required Associated Types§

type Elem

type Items: Items<Elem = Self::Elem>

Required Methods§

fn into_items(self) -> Self::Items

Implementations on Foreign Types§

§

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

§

type Elem = &'a mut T

§

type Items = &'a mut [T]

§

fn into_items(self) -> <&'a mut Vec<T> as IntoItems>::Items

Implementors§

§

impl<T, I> IntoItems for I
where I: Items<Elem = T>,

§

type Elem = T

§

type Items = I