HashSet/HashMap/HashCache replace
enhancement
Impl [replace](https://doc.rust-lang.org/std/collections/struct.HashSet.html#method.replace) for `HashSet`:
```rust
pub fn replace_sync(&mut self, value: T) -> Option<T>;
pub async fn replace_async(&mut self, value: T) -> Option<T>;
```
_Adds a value to the set, replacing the existing value, if any, that is equal to the given one. Returns the replaced value._
6 条评论