Expand description

Data structures to operate on contract memory during contract execution.

These definitions are useful since we are operating in a no_std environment and should be used by all ink! crates instead of directly using std or alloc crates. If needed we shall instead enhance the exposed types here.

The ink_prelude crate guarantees a stable interface between std and no_std mode.


A module for working with borrowed data.
The Box<T> type for heap allocation.
Collection types.
A UTF-8–encoded, growable string.
A contiguous growable array type with heap-allocated contents, written Vec<T>.


Creates a String using interpolation of runtime expressions.
Creates a Vec containing the arguments.