Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
new
Function · 0.50
cost
Method · 0.45
Tested by
no test coverage detected