Skip to main content

AtCollection

Trait AtCollection 

Source
pub trait AtCollection<T>
where Self: Sized,
{ // Required methods fn as_slice(&self) -> &[T]; fn as_vec(self) -> Vec<T>; // Provided methods fn into_iter(self) -> IntoIter<T> { ... } fn iter(&self) -> Iter<'_, T> { ... } }

Required Methods§

Source

fn as_slice(&self) -> &[T]

Source

fn as_vec(self) -> Vec<T>

Provided Methods§

Source

fn into_iter(self) -> IntoIter<T>

Source

fn iter(&self) -> Iter<'_, T>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§