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.
Modules§
- borrow
- A module for working with borrowed data.
- boxed
- The
Box<T>
type for heap allocation. - collections
- Collection types.
- string
- A UTF-8–encoded, growable string.
- vec
- A contiguous growable array type with heap-allocated contents, written
Vec<T>
.
Macros§
- format
- Creates a
String
using interpolation of runtime expressions. - vec
- Creates a
Vec
containing the arguments.
Constants§
- IIP2_
WILDCARD_ COMPLEMENT_ SELECTOR - A well know selector reserved for the message required to be defined alongside a wildcard selector. See IIP-2.