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

Method table

crates/environ/src/tunables.rs:521–523  ·  view source on GitHub ↗

Create a new operator cost strategy with a table of costs.

(cost: OperatorCost)

Source from the content-addressed store, hash-verified

519impl OperatorCostStrategy {
520 /// Create a new operator cost strategy with a table of costs.
521 pub fn table(cost: OperatorCost) -> Self {
522 OperatorCostStrategy::Table(Box::new(cost))
523 }
524
525 /// Get the cost of an operator.
526 pub fn cost(&self, op: &Operator) -> i64 {

Callers

nothing calls this directly

Calls 2

TableClass · 0.70
newFunction · 0.50

Tested by

no test coverage detected