storable_arrays

Macro storable_arrays 

Source
storable_arrays!() { /* proc-macro */ }
Expand description

Generate Storable implementations for fixed-size arrays of primitive types.

Generates implementations for arrays of sizes 1-32 for the following element types:

  • Rust integers: u8-u128, i8-i128
  • Alloy integers: U8-U256, I8-I256
  • Address
  • FixedBytes<20>, FixedBytes<32>

Each array gets:

  • StorableType impl with LAYOUT = Layout::Slot
  • Storable<SLOTS> impl where SLOTS is computed from element packing