Skip to main content

gen_load_impl

Function gen_load_impl 

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

Generate fn load() implementation.

For consecutive packable fields sharing a slot, loads the slot once and extracts all fields via PackedSlot, avoiding redundant SLOADs.