spl_pod::bytemuck

Function pod_bytes_of

Source
pub fn pod_bytes_of<T: Pod>(t: &T) -> &[u8] 
Expand description

Convert a Pod into a slice of bytes (zero copy)