We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
GroupingMapBy
1 parent 2e325a0 commit 94452e3Copy full SHA for 94452e3
src/grouping_map.rs
@@ -3,14 +3,19 @@
3
use crate::MinMaxResult;
4
use std::cmp::Ordering;
5
use std::collections::HashMap;
6
+use std::fmt;
7
use std::hash::Hash;
8
use std::iter::Iterator;
9
use std::ops::{Add, Mul};
10
11
/// A wrapper to allow for an easy [`into_grouping_map_by`](crate::Itertools::into_grouping_map_by)
-#[derive(Clone, Debug)]
12
+#[derive(Clone)]
13
pub struct MapForGrouping<I, F>(I, F);
14
15
+impl<I: fmt::Debug, F> fmt::Debug for MapForGrouping<I, F> {
16
+ debug_fmt_fields!(MapForGrouping, 0);
17
+}
18
+
19
impl<I, F> MapForGrouping<I, F> {
20
pub(crate) fn new(iter: I, key_mapper: F) -> Self {
21
Self(iter, key_mapper)
0 commit comments