ITADN

HashSet/HashMap/HashCache replace

#196Opencarlocorradini 创建于 2025-09-24
enhancement
C
carlocorradinicommented
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 条评论