Expand description
Dynamic array (Vec<T>) implementation for the storage traits.
§Storage Layout
Vec uses Solidity-compatible dynamic array storage:
- Base slot: Stores the array length (number of elements)
- Data slots: Start at
keccak256(len_slot), elements packed efficiently
§Multi-Slot Support
- Supports both single-slot primitives and multi-slot types (structs, arrays)
- Element at index
istarts at slotdata_start + i * T::SLOTS
Structs§
- VecHandler
- Type-safe handler for accessing
Vec<T>in storage.