pub unsafe fn load_unchecked<T: RawType>(
bytes: &[u8],
) -> Result<&T, ProgramError>
Expand description
Return a T
reference from the given bytes.
This function does not check if the data is initialized.
ยงSafety
The caller must ensure that bytes
contains a valid representation of T
.