std: add consuming iterators for `HashMap` and `HashSet`
auto merge of #7806 : apasel422/rust/hash_consume, r=catamorphism

This partially addresses #7719.