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

Method add

cranelift/codegen/src/egraph/cost.rs:146–148  ·  view source on GitHub ↗
(self, other: Cost)

Source from the content-addressed store, hash-verified

144 type Output = Cost;
145
146 fn add(self, other: Cost) -> Cost {
147 Cost::new(self.cost().saturating_add(other.cost()))
148 }
149}
150
151#[cfg(test)]

Callers

nothing calls this directly

Calls 2

newFunction · 0.50
costMethod · 0.45

Tested by

no test coverage detected