Expand description
Code generation for primitive type storage implementations.
Structsยง
- Array
Config ๐ - Configuration for generating array implementations
- Type
Config ๐ - Complete configuration for generating implementations for a type
Enumsยง
- Storable
Conversion ๐Strategy - Strategy for converting to U256
- Storage
KeyStrategy ๐ - Strategy for converting to storage key bytes
Constantsยง
- ALLOY_
INT_ ๐SIZES - RUST_
INT_ ๐SIZES
Functionsยง
- gen_
alloy_ ๐integers - Generate
StorableType,Packable, andStorageKeyfor alloy integer types. - gen_
array_ ๐impl - Generate
StorableType,Storable, andStorageKeyfor a fixed-size array. - gen_
arrays_ ๐for_ type - Generate array implementations for a specific element type
- gen_
complete_ ๐impl_ set - Generate all storage-related impls for a type.
- gen_
fixed_ ๐bytes - Generate
StorableType,Packable, andStorageKeyforFixedBytes<N>types. - gen_
nested_ ๐arrays - Generate nested array implementations for common small cases
- gen_
packed_ ๐array_ load - Generate load implementation for packed arrays
- gen_
packed_ ๐array_ store - Generate store implementation for packed arrays
- gen_
storable_ ๐alloy_ bytes - Generate
StorableType,Packable, andStorageKeyforFixedBytes<N>types. - gen_
storable_ ๐alloy_ ints - Generate
StorableType,Packable, andStorageKeyfor all alloy integer types. - gen_
storable_ ๐arrays - Generate
StorableType,Storable, andStorageKeyfor fixed-size arrays of primitive types. - gen_
storable_ ๐layout_ impl - Generate a
StorableTypeimplementation - gen_
storable_ ๐rust_ ints - Generate
StorableType,Packable, andStorageKeyfor all standard Rust integer types. - gen_
storage_ ๐key_ impl - Generate a
StorageKeyimplementation based on the conversion strategy - gen_
struct_ ๐array_ impl - Generate a single array implementation for a user-defined struct.
- gen_
struct_ ๐array_ load - Generate load implementation for struct arrays.
- gen_
struct_ ๐array_ store - Generate store implementation for struct arrays.
- gen_
struct_ ๐arrays - Generate array implementations for user-defined structs (multi-slot types).
- gen_
to_ ๐word_ impl - Generate
FromWordimplementation for all primitive types (storage I/O is inStorable). - gen_
unpacked_ ๐array_ load - Generate load implementation for unpacked arrays
- gen_
unpacked_ ๐array_ store - Generate store implementation for unpacked arrays
- is_
packable ๐ - Whether a given amount of bytes (primitives only) should be packed, or not.