[][src]Module alloc::prelude

🔬 This is a nightly-only experimental API. (alloc)

The alloc Prelude

The purpose of this module is to alleviate imports of commonly-used items of the alloc crate by adding a glob import to the top of modules:

extern crate alloc;
use alloc::prelude::*;

Structs

Box

A pointer type for heap allocation.

String

A UTF-8 encoded, growable string.

Vec

A contiguous growable array type, written Vec<T> but pronounced 'vector'.

Traits

ToOwned

A generalization of Clone to borrowed data.

ToString

A trait for converting a value to a String.

SliceConcatExt[
Experimental
]

An extension trait for concatenating slices