ml#11-643' title='goto source code'>[src]</a></span></h1>
<div class='docblock'><p>A pointer type for heap allocation.</p>

<p><code>Box&lt;T&gt;</code>, casually referred to as a &#39;box&#39;, provides the simplest form of
heap allocation in Rust. Boxes provide ownership for this allocation, and
drop their contents when they go out of scope.</p>

<h1 id='examples' class='section-header'><a href='#examples'>Examples</a></h1>
<p>Creating a box:</p>
<pre class='rust rust-example-rendered'>
<span class='kw'>l