Function safe_token_2022::pod::pod_from_bytes
source · pub fn pod_from_bytes<T: Pod>(bytes: &[u8]) -> Result<&T, ProgramError>
Expand description
Convert a slice into a Pod
(zero copy)
pub fn pod_from_bytes<T: Pod>(bytes: &[u8]) -> Result<&T, ProgramError>
Convert a slice into a Pod
(zero copy)