pub unsafe fn uninit_byte_slice_mut_from<T>(
    val: &mut T
) -> &mut [MaybeUninit<u8>]
Expand description

Gets mutable uninit byte slice out of the type.

It is up to user to interpret result correctly and safe.

Usage

use lazy_bytes_cast::uninit_byte_slice_mut_from;

let bytes = unsafe {
    uninit_byte_slice_mut_from(&mut 0u32)
};