MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / sum

Method sum

cranelift/codegen/src/egraph/cost.rs:132–134  ·  view source on GitHub ↗
(iter: I)

Source from the content-addressed store, hash-verified

130
131impl core::iter::Sum<Cost> for Cost {
132 fn sum<I: Iterator<Item = Cost>>(iter: I) -> Self {
133 iter.fold(Self::zero(), |a, b| a + b)
134 }
135}
136
137impl core::default::Default for Cost {

Callers 15

simd_sumFunction · 0.80
stack_addressMethod · 0.80
cf_weightMethod · 0.80
block_weightMethod · 0.80
inst_countFunction · 0.80
lenMethod · 0.80
totalMethod · 0.80
byte_sizeMethod · 0.80
fixed_stack_sizeMethod · 0.80
of_pure_opMethod · 0.80
measure_execution_timeFunction · 0.80
testMethod · 0.80

Calls 1

zeroFunction · 0.85

Tested by 2

testMethod · 0.64