Skip to content

Commit c5bf4a1

Browse files
committed
Added Clone and Debug implementations for MapForGrouping and GroupingMap
1 parent 4b2a73e commit c5bf4a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/grouping_map.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use std::iter::Iterator;
88
use std::ops::{Add, Mul};
99

1010
/// A wrapper to allow for an easy [`into_grouping_map_by`](../trait.Itertools.html#method.into_grouping_map_by)
11+
#[derive(Clone, Debug)]
1112
pub struct MapForGrouping<I, F>(I, F);
1213

1314
impl<I, F> MapForGrouping<I, F> {
@@ -46,6 +47,7 @@ pub type GroupingMapBy<I, F> = GroupingMap<MapForGrouping<I, F>>;
4647
/// using some aggregating operation.
4748
///
4849
/// No method on this struct performs temporary allocations.
50+
#[derive(Clone, Debug)]
4951
#[must_use = "GroupingMap is lazy and do nothing unless consumed"]
5052
pub struct GroupingMap<I> {
5153
iter: I,

0 commit comments

Comments
 (0)