pub trait AsByteSliceMut {
// Required method
unsafe fn as_byte_slice_mut(&mut self) -> &mut [u8] ⓘ;
}
Required Methods§
Sourceunsafe fn as_byte_slice_mut(&mut self) -> &mut [u8] ⓘ
unsafe fn as_byte_slice_mut(&mut self) -> &mut [u8] ⓘ
§Safety
The method is unsafe because any padding bytes in the struct may be uninitialized memory (giving undefined behavior). Also, there are not any Endianness assumtions. The caller should care about it.