Container

Trait Container 

Source
pub trait Container<U>
where Self::Cont<U>: RawSpace<Elem = U>,
{ type Cont<V>: ?Sized; }
Expand description

The Container trait is a higher-kinded trait used to establish an interface for defining containers themselves.

Required Associated Types§

Source

type Cont<V>: ?Sized

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<C, T> Container<T> for &C
where C: Container<T>, <C as Container<T>>::Cont<T>: RawSpace<Elem = T>,

Source§

type Cont<U> = <C as Container<T>>::Cont<U>

Source§

impl<C, T> Container<T> for &mut C
where C: Container<T>, <C as Container<T>>::Cont<T>: RawSpace<Elem = T>,

Source§

type Cont<U> = <C as Container<T>>::Cont<U>

Source§

impl<K, V> Container<V> for BTreeMap<K, V>
where K: Ord,

Source§

type Cont<U> = BTreeMap<K, U>

Source§

impl<T> Container<T> for [T]

Source§

type Cont<U> = [U]

Source§

impl<T> Container<T> for (T, T)

Source§

impl<T> Container<T> for (T, T, T)

Source§

impl<T> Container<T> for (T, T, T, T)

Source§

impl<T> Container<T> for (T, T, T, T, T)

Source§

impl<T> Container<T> for (T, T, T, T, T, T)

Source§

impl<T> Container<T> for (T, T, T, T, T, T, T)

Source§

impl<T> Container<T> for (T, T, T, T, T, T, T, T)

Source§

impl<T> Container<T> for (T, T, T, T, T, T, T, T, T)

Source§

impl<T> Container<T> for (T, T, T, T, T, T, T, T, T, T)

Source§

impl<T> Container<T> for (T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T> Container<T> for (T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T> Container<T> for Vec<T>

Source§

type Cont<U> = Vec<U>

Source§

impl<T, const N: usize> Container<T> for [T; N]

Source§

impl<V> Container<V> for BTreeSet<V>

Source§

type Cont<U> = BTreeSet<U>

Source§

impl<V> Container<V> for LinkedList<V>

Source§

impl<V> Container<V> for VecDeque<V>

Source§

type Cont<U> = VecDeque<U>

Implementors§