pub trait BoxHelper<T> {
// Required method
fn alloc() -> BoxAllocation<T>;
}
Expand description
Helper trait for a Box
type that allocates up-front.
Required Methods§
Sourcefn alloc() -> BoxAllocation<T>
fn alloc() -> BoxAllocation<T>
Allocates the storage without providing any data.
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.