「件数が多いと合計がオーバーフローするからその対策が欲しい用途」そんな考えがオカシイ sumですらオーバーフローに言及しているだけで対策が欲しいから、だからstdじゃないという理由では無い https://doc.rust-lang.org/std/iter/trait.Iterator.html#panics-3 When calling sum() and a primitive integer type is being returned, this method will panic if the computation overflows and debug assertions are enabled.