Skip to main content

Module heap

Module heap 

Source
Expand description

Heap-allocating types re-exported from alloc::*. Available with the alloc (or std) feature. On no_std targets the consumer must register a #[global_allocator]; the ove-allocator crate provides a default that wraps libc malloc/free.

Structs§

Arc
A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
Box
A pointer type that uniquely owns a heap allocation of type T.
String
A UTF-8–encoded, growable string.
Vec
A contiguous growable array type, written as Vec<T>, short for ‘vector’.