Module storable

Module storable 

Source
Expand description

Implementation of the #[derive(Storable)] macro.

Functionsยง

derive_impl ๐Ÿ”’
Implements the Storable derive macro for structs.
gen_from_evm_words_impl ๐Ÿ”’
Generate the fn from_evm_words() implementation that unpacks fields from an array of words.
gen_packing_module_from_ir ๐Ÿ”’
Generate a compile-time module that calculates the packing layout from IR.
gen_storage_op_impl ๐Ÿ”’
Generate either fn load() or fn store() implementation.
gen_to_evm_words_impl ๐Ÿ”’
Generate the fn to_evm_words() implementation that packs fields into an array of words.
get_neighbor_slot_refs ๐Ÿ”’
Helper to compute prev and next slot constant references for a field at a given index.