Skip to main content

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_default_impl ๐Ÿ”’
Generate a Default implementation that calls Self::new().
gen_handler_field_decl ๐Ÿ”’
Generates a public handler field declaration for a storage field
gen_handler_field_init ๐Ÿ”’
Generates handler field initialization expression
gen_slots_module ๐Ÿ”’
Generate the slots module with constants and collision checks
gen_struct ๐Ÿ”’
Generate the transformed struct with handler fields