Trait BoxLike

Source
pub trait BoxLike {
    type Container<T: ?Sized>: MutContainer<T>;
}
Available on crate feature kinds only.
Expand description

A container kind trait based on how Box<T> acts as a container for T.

Has strictly tighter requirements than TLike, FragileTLike, and FragileBoxLike.

Required Associated Types§

Source

type Container<T: ?Sized>: MutContainer<T>

A Box<T>-like container type

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.

Implementors§