Skip to main content

read_str_map_to_strings

Function read_str_map_to_strings 

Source
pub fn read_str_map_to_strings<T: DeserializableTraceData>(
    buf: &mut Buffer<T>,
) -> Result<HashMap<T::Text, T::Text>, DecodeError>
Expand description

Read a hashmap of (string, string) from the slices buf.

ยงErrors

Fails if the buffer does not contain a valid map length prefix, or if any key or value is not a valid utf8 msgpack string. Null values are skipped (key not inserted into map).