Function vstd::std_specs::hash::ex_hash_map_remove
source · pub exec fn ex_hash_map_remove<Key, Value, S, Q>(
m: &mut HashMap<Key, Value, S>,
k: &Q
) -> result : Option<Value>
Expand description
ensures
obeys_key_model::<Key>() && builds_valid_hashers::<S>()
==> {
&&& borrowed_key_removed(old(m)@, m@, k)
&&& match result {
Some(v) => maps_borrowed_key_to_value(old(m)@, k, v),
None => !contains_borrowed_key(old(m)@, k),
}
},