pub trait BoxLike: Sealed { }
Expand description
A type that behaves like Box
.
This is used for BumpBox::into_box
.
Note: This trait is also implemented for allocator_api2
version 0.2’s Box
but it won’t show up in the implementations below because the documentation is built with the nightly-allocator-api
feature which makes allocator_api2
version 0.2’s Box
become nightly’s Box
.
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§
impl<T: ?Sized, A: Allocator> BoxLike for Box<T, A>
Available on crate feature
nightly-allocator-api
only.impl<T: ?Sized, A: Allocator> BoxLike for Box<T, A>
Available on crate features
allocator-api2-03
and alloc
only.