Module alloc::owned[src]

A unique pointer type

Structs

Box

A type that represents a uniquely-owned value.

Statics

pub static HEAP: () = ()

A value that represents the global exchange heap. This is the default place that the box keyword allocates into when no place is supplied.

The following two examples are equivalent:

use std::owned::HEAP;

let foo = box(HEAP) Bar::new(2);
let foo = box Bar::new(2);
 

Traits

AnyOwnExt

Extension methods for an owning Any trait object