pub fn check_key_in_map<M>( key: &M::Key, map: &M, key_name: &str, map_name: &str, ) -> Result<()>where M: MapLike,
Checks the key is in the map.
key
map
Returns an error if the validation check fails.