Skip to main content

Container

Trait Container 

Source
pub trait Container {
    type Inner;
}
Expand description

A container for an argument.

Required Associated Types§

Source

type Inner

The contained type.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T> Container for Option<T>

Source§

type Inner = T

Source§

impl<T> Container for Vec<T>

Source§

type Inner = T

Implementors§

Source§

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

Source§

type Inner = T