Module layout

Module layout 

Source

Functionsยง

gen_collision_checks ๐Ÿ”’
Generate collision check functions for all fields
gen_constructor ๐Ÿ”’
Generate the constructor method
gen_contract_storage_impl ๐Ÿ”’
Generate the trait ContractStorage implementation
gen_getters_and_setters ๐Ÿ”’
Generate getters and setters methods for a field
gen_slots_module ๐Ÿ”’
Generate the slots module with constants and collision checks
gen_struct ๐Ÿ”’
Generate the transformed struct with generic parameters and runtime fields