pub fn init_header<T>(data: &mut [u8]) -> Result<(), ProgramError>where
T: LayoutContract,Expand description
Initialize an account’s header from a layout contract type.
Convenience wrapper that pulls disc, version, and layout_id from
the type and stamps schema_epoch = DEFAULT_SCHEMA_EPOCH.