pub(crate) fn gen_handler_field_init(
field: &LayoutField<'_>,
field_idx: usize,
all_fields: &[LayoutField<'_>],
packing_mod: Option<&Ident>,
) -> TokenStreamExpand description
Generates handler field initialization expression
§Parameters
field: the field to initializefield_idx: the field’s index in the allocated fields arrayall_fields: all allocated fields (for neighbor slot detection)packing_mod: optional packing module identifierNone= contract storage (usesslotsmodule, inefficient layout)Some(mod_ident)= storable struct (uses packing module, efficient layout, offsets frombase_slot)