Function biodivine_sketchbook::sketchbook::utils::_parse_map_keys

source ยท
pub fn _parse_map_keys<K, V>(
    map: HashMap<String, V>,
) -> Result<HashMap<K, V>, String>
where K: FromStr + Hash + Eq, <K as FromStr>::Err: Display, String: From<<K as FromStr>::Err>,
Expand description

Convert keys of the HashMap from String to a given type. This is useful for our own implementing of the serde::Deserialize trait.