Function bevy_internal::core::bytes_of[]

pub fn bytes_of<T>(t: &T) -> &[u8]
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
where
    T: Pod
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.