pub fn check_key_in_map<K, V>( key: &K, map: &HashMap<K, V>, key_name: &str, map_name: &str, ) -> Result<()>where K: Hash + Eq + Display,
Checks the key is in the map.
key
map