Skip to main content

gen_store_impl

Function gen_store_impl 

Source
fn gen_store_impl(fields: &[(&Ident, &Type)], packing: &Ident) -> TokenStream
Expand description

Generate fn store() implementation.

For consecutive packable fields sharing a slot, accumulates changes in memory and writes once, avoiding redundant SLOAD + SSTORE pairs.