Function bytemuck::internal::bytes_of

source ยท
pub(crate) unsafe fn bytes_of<T: Copy>(t: &T) -> &[u8]
Expand description

Re-interprets &T as &[u8].

Any ZST becomes an empty slice, and in that case the pointer value of that empty slice might not match the pointer value of the input reference.