use ;
/// Serialize a layout type to a byte stream.
///
/// The wire format is type-specific and documented on each implementor.
/// All multi-byte integers are written in little-endian order.
///
/// In practice this is implemented only for host-readable layout storages.
/// Deserialize a layout type from a byte stream.
///
/// The receiver must be pre-allocated with enough capacity to hold the
/// incoming data. Metadata fields (dimensions, sizes) are updated
/// atomically after a successful read to avoid leaving the object in
/// an inconsistent state on I/O errors.
///
/// In practice this is implemented only for host-mutable layout storages.