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)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§