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, layout_id, and schema_epoch from the type.