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 Option<T>

Source§

type Cont<DType_> = Option<DType_>

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 BinaryHeap<T>

Source§

type Cont<DType_> = BinaryHeap<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 VecDeque<T>

Source§

type Cont<DType_> = VecDeque<DType_>

Source§

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

Source§

type Cont<DType_> = Rc<DType_>

Source§

impl<T> Container<T> for Weak<T>

Source§

type Cont<DType_> = Weak<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<T> Container<T> for OnceCell<T>

Source§

type Cont<DType_> = OnceCell<DType_>

Source§

impl<T> Container<T> for Cell<T>

Source§

type Cont<DType_> = Cell<DType_>

Source§

impl<T> Container<T> for RefCell<T>

Source§

type Cont<DType_> = RefCell<DType_>

Source§

impl<T> Container<T> for LazyLock<T>

Source§

type Cont<DType_> = LazyLock<DType_>

Source§

impl<T> Container<T> for Mutex<T>

Source§

type Cont<DType_> = Mutex<DType_>

Source§

impl<T> Container<T> for RwLock<T>

Source§

type Cont<DType_> = RwLock<DType_>

Source§

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

Source§

type Cont<DType_> = HashSet<DType_>

Implementors§