Function unpack_enum_header

Source
pub fn unpack_enum_header<'a>(
    bytes: &mut &'a [u8],
) -> Result<EnumHeader<'a>, UnpackErr>
Expand description

Unpack an enum header.

NOTE: This function does not necessarily unpack a complete msgpack value. In the case of an enum with fields, the next value unpacked must be the fields of the enum.