Added doc for GroupingMap::collect
@@ -111,6 +111,8 @@ where
})
}
+ /// Groups elements from the `GroupingMap` source by key and collects the elements of each group in
+ /// an instance of `C`. The iteration order is preserved when inserting elements.
pub fn collect<C>(self) -> HashMap<K, C>
where
C: Default + Extend<V>,
