Module mun_memory::mapping

source ·

Structs

Description of the mapping of a single field. When stored together with the new index, this provides all information necessary for a mapping function.
The type mapping needed to convert an old into a new set of unique and ordered values.
The struct mapping needed to convert an old into a new struct of unique and ordered fields.

Enums

The Action to take when mapping memory from A to B.

Traits

A trait used to map allocated memory using type differences.

Functions

Given a set of old_fields of type T and their corresponding diff, calculates the mapping new_index -> Option<FieldMappingDesc> for each new field.