MCPcopy Create free account
hub / github.com/bytesize-rs/bytesize / sum

Method sum

src/lib.rs:395–400  ·  view source on GitHub ↗
(iter: I)

Source from the content-addressed store, hash-verified

393
394impl iter::Sum<ByteSize> for ByteSize {
395 fn sum<I>(iter: I) -> Self
396 where
397 I: Iterator<Item = ByteSize>,
398 {
399 iter.fold(Self::default(), ops::Add::add)
400 }
401}
402
403impl<'a> iter::Sum<&'a ByteSize> for ByteSize {

Callers 2

take_whileFunction · 0.80
skip_whileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected