std::boxed::HEAP
[−]
[src]
pub static HEAP: ()=
Unstable
: may be renamed; uncertain about custom allocator design
A value that represents the heap. This is the default place that the box
keyword allocates into when no place is supplied.
The following two examples are equivalent:
#![feature(alloc)] #![feature(box_syntax)] use std::boxed::HEAP; fn main() { let foo = box(HEAP) 5; let foo = box 5; }#![feature(box_syntax)] use std::boxed::HEAP; fn main() { let foo = box(HEAP) 5; let foo = box 5; }