Expand description
Implementation of the #[derive(Storable)] macro.
Functionsยง
- derive_
impl ๐ - Implements the
Storablederive 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()orfn 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.