copyless

Trait BoxHelper

Source
pub trait BoxHelper<T> {
    // Required method
    fn alloc() -> BoxAllocation<T>;
}
Expand description

Helper trait for a Box type that allocates up-front.

Required Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl<T> BoxHelper<T> for Box<T>

Implementors§