Function check_key_in_map

Source
pub fn check_key_in_map<M>(
    key: &M::Key,
    map: &M,
    key_name: &str,
    map_name: &str,
) -> Result<()>
where M: MapLike,
Expand description

Checks the key is in the map.

§Errors

Returns an error if the validation check fails.