derive_impl

Function derive_impl 

Source
pub(crate) fn derive_impl(input: DeriveInput) -> Result<TokenStream>
Expand description

Implements the Storable derive macro for structs.

Packs fields into storage slots based on their byte sizes. Fields are placed sequentially in slots, moving to a new slot when the current slot cannot fit the next field (no spanning across slots).