# bitflags::__core::boxed::HEAP [−] [src]

    pub const HEAP: ExchangeHeapSingleton = ExchangeHeapSingleton{_force_singleton: (),}

Unstable (`box_heap`)

: 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(box_heap)]

    #![feature(box_syntax, placement_in_syntax)]
    use std::boxed::HEAP;

    fn main() {
        let foo: Box<i32> = in HEAP { 5 };
        let foo = box 5;
    }

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)