9595 }
9696}
9797
98- /// Summarize an iterator.
99- impl < Size , Item > FromIterator < Item > for Summary < Size >
100- where
101- Size : size:: Size ,
102- Item : SummarizeHardlinks < Size > ,
103- Item :: Summary : Into < SingleInodeSummary < Size > > ,
104- {
105- /// Create a summary of shared links and size from an iterator.
106- fn from_iter < Iter : IntoIterator < Item = Item > > ( iter : Iter ) -> Self {
107- iter. summarize_hardlinks ( )
108- }
109- }
110-
11198impl < Size : size:: Size > HardlinkList < Size > {
11299 /// Create summary for the shared links and size.
113100 pub fn summarize ( & self ) -> Summary < Size > {
@@ -204,12 +191,6 @@ impl<Size: Copy> SummarizeHardlinks<Size> for ReflectionEntry<Size> {
204191 }
205192}
206193
207- impl < Size : Copy > From < ReflectionEntry < Size > > for SingleInodeSummary < Size > {
208- fn from ( reflection : ReflectionEntry < Size > ) -> Self {
209- reflection. summarize_hardlinks ( )
210- }
211- }
212-
213194impl < Size : Copy > SummarizeHardlinks < Size > for & ReflectionEntry < Size > {
214195 type Summary = SingleInodeSummary < Size > ;
215196 fn summarize_hardlinks ( self ) -> Self :: Summary {
@@ -221,25 +202,13 @@ impl<Size: Copy> SummarizeHardlinks<Size> for &ReflectionEntry<Size> {
221202 }
222203}
223204
224- impl < ' r , Size : Copy > From < & ' r ReflectionEntry < Size > > for SingleInodeSummary < Size > {
225- fn from ( reflection : & ' r ReflectionEntry < Size > ) -> Self {
226- reflection. summarize_hardlinks ( )
227- }
228- }
229-
230205impl < ' a , Size : Copy > SummarizeHardlinks < Size > for IterItem < ' a , Size > {
231206 type Summary = SingleInodeSummary < Size > ;
232207 fn summarize_hardlinks ( self ) -> Self :: Summary {
233208 ( & self ) . summarize_hardlinks ( )
234209 }
235210}
236211
237- impl < ' a , Size : Copy > From < IterItem < ' a , Size > > for SingleInodeSummary < Size > {
238- fn from ( value : IterItem < ' a , Size > ) -> Self {
239- value. summarize_hardlinks ( )
240- }
241- }
242-
243212impl < ' a , Size : Copy > SummarizeHardlinks < Size > for & IterItem < ' a , Size > {
244213 type Summary = SingleInodeSummary < Size > ;
245214 fn summarize_hardlinks ( self ) -> Self :: Summary {
@@ -250,9 +219,3 @@ impl<'a, Size: Copy> SummarizeHardlinks<Size> for &IterItem<'a, Size> {
250219 }
251220 }
252221}
253-
254- impl < ' r , ' a , Size : Copy > From < & ' r IterItem < ' a , Size > > for SingleInodeSummary < Size > {
255- fn from ( value : & ' r IterItem < ' a , Size > ) -> Self {
256- value. summarize_hardlinks ( )
257- }
258- }
0 commit comments