[][src]Function fixed_slice_vec::single::embed_uninit

pub fn embed_uninit<'a, T, F, E>(
    destination: &'a mut [MaybeUninit<u8>],
    f: F
) -> Result<&'a mut T, EmbedValueError<E>> where
    F: Fn(&'a mut [MaybeUninit<u8>]) -> Result<T, E>, 

Initialize a value into location within a provided byte slice, and return a mutable reference to that value.

The user-provided constructor function also has access to the portions of the byte slice after the region allocated for the embedded value itself.