Skip to main content

Box

Type Alias Box 

Source
pub type Box<T> = Box<T>;
Expand description

A pointer type that uniquely owns a heap allocation of type T.

§Feature Variants

  • With alloc feature: Standard heap-allocated Box<T> from the alloc crate
  • Without alloc feature: Transparent newtype holding T inline

Aliased Type§

pub struct Box<T>(/* private fields */);