peek_poke

Function peek_from_default

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

Peek helper for constructing a T by Default initialized stack allocation.