pub trait BoxExt: Sized {
type T: ?Sized;
// Required methods
fn drop_box(bx: Self) -> UninitBox;
fn take_box(bx: Self) -> (UninitBox, Self::T)
where Self::T: Sized;
}
Expand description
Extension methods for Box<T>
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.