[−][src]Function fixed_slice_vec::single::embed
pub fn embed<'a, T, F, E>(
destination: &'a mut [u8],
f: F
) -> Result<&'a mut T, EmbedValueError<E>> where
F: Fn(&'a mut [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.