pub unsafe fn load<T: Initializable + RawType>(
bytes: &[u8],
) -> Result<&T, ProgramError>
Expand description
Return a reference for an initialized T
from the given bytes.
ยงSafety
The caller must ensure that bytes
contains a valid representation of T
.