peek_poke

Function peek_from_uninit

Source
pub unsafe fn peek_from_uninit<T: Copy + Peek>(
    bytes: *const u8,
) -> (T, *const u8)
Expand description

Peek helper for constructing a T by Copying into an uninitialized stack allocation.