Trait Container

Source
pub trait Container<T> {
    type Cont<V>: RawContainer<Item = V> + ?Sized;
}
Expand description

The Container trait is a higher-level abstraction over RawContainer.

Required Associated Types§

Source

type Cont<V>: RawContainer<Item = 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<T> Container<T> for [T]

Source§

type Cont<V> = [V]

Source§

impl<T> Container<T> for Box<T>

Source§

type Cont<DType_> = Box<DType_>

Source§

impl<T> Container<T> for BTreeSet<T>

Source§

type Cont<DType_> = BTreeSet<DType_>

Source§

impl<T> Container<T> for LinkedList<T>

Source§

type Cont<DType_> = LinkedList<DType_>

Source§

impl<T> Container<T> for Rc<T>

Source§

type Cont<DType_> = Rc<DType_>

Source§

impl<T> Container<T> for Arc<T>

Source§

type Cont<DType_> = Arc<DType_>

Source§

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

Source§

type Cont<DType_> = Vec<DType_>

Source§

impl<V> Container<V> for HashSet<V>

Source§

type Cont<DType_> = HashSet<DType_>

Implementors§