Module single

Source
Expand description

Functions relating to managing references to well-typed Rust values stored inside arbitrary byte slices.

Enums§

EmbedValueError
Plenty can go wrong when attempting to embed a value in arbitrary bytes
SplitUninitError
Plenty can go wrong when attempting to find space for a value in arbitrary bytes.

Functions§

embed
Initialize a value into location within a provided byte slice, and return a mutable reference to that value.
embed_uninit
Initialize a value into location within a provided byte slice, and return a mutable reference to that value.
split_uninit_from_bytes
Split out a mutable reference to an uninitialized struct at an available location within a provided slice of bytes.
split_uninit_from_uninit_bytes
Split out a mutable reference to an uninitialized struct at an available location within a provided slice of maybe-uninitialized bytes.