pub unsafe fn peek_from_uninit<T: Copy + Peek>(
bytes: *const u8,
) -> (T, *const u8)
Expand description
Peek helper for constructing a T
by Copy
ing into an uninitialized stack
allocation.
§Safety
-
bytes
must denote a valid pointer to a block of memory. -
bytes
must point to at least the number of bytes returned byPoke::max_size()
.