collections::boxed::HEAPUnstable [-]  [+] [src]

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:

#![feature(box_syntax)] use std::boxed::HEAP; fn main() { struct Bar; impl Bar { fn new(_a: int) { } } let foo = box(HEAP) Bar::new(2); let foo = box Bar::new(2); }
#![feature(box_syntax)]
use std::boxed::HEAP;

fn main() {
    let foo = box(HEAP) Bar::new(2);
    let foo = box Bar::new(2);
}