pub trait Wrapper<T> {
type Cont<U>: ?Sized;
// Required methods
fn get(&self) -> &T;
fn view(&self) -> Self::Cont<&T>;
}Expand description
The Wrapper trait established a higher-kinded interface for single-value containers.
Required Associated Types§
Required Methods§
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.