Function bytemuck::bytes_of_mut
source · [−]pub fn bytes_of_mut<T: NoUninit + AnyBitPattern>(t: &mut T) -> &mut [u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
Expand description
Re-interprets &mut T
as &mut [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.