We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fef7d3c commit 3de4e6cCopy full SHA for 3de4e6c
src/grouping_map.rs
@@ -13,8 +13,13 @@ use std::ops::{Add, Mul};
13
/// A wrapper to allow for an easy [`into_grouping_map_by`](crate::Itertools::into_grouping_map_by)
14
pub type MapForGrouping<I, F> = MapSpecialCase<I, GroupingMapFn<F>>;
15
16
+#[derive(Clone)]
17
pub struct GroupingMapFn<F>(F);
18
19
+impl<F> std::fmt::Debug for GroupingMapFn<F> {
20
+ debug_fmt_fields!(GroupingMapFn,);
21
+}
22
+
23
impl<V, K, F: FnMut(&V) -> K> MapSpecialCaseFn<V> for GroupingMapFn<F> {
24
type Out = (K, V);
25
fn call(&mut self, v: V) -> Self::Out {
0 commit comments