nautilus_core::correctness

Function check_key_in_map

source
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,
Expand description

Checks the key is in the map.