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

Method with_results

cranelift/codegen/src/ir/builder.rs:161–170  ·  view source on GitHub ↗

Reuse result values in `reuse`. Convert this builder into one that will reuse the provided result values instead of allocating new ones. The provided values for reuse must not be attached to anything. Any missing result values will be allocated as normal. The `reuse` argument is expected to be an array of `Option `.

(self, reuse: Array)

Source from the content-addressed store, hash-verified

159 ///
160 /// The `reuse` argument is expected to be an array of `Option<Value>`.
161 pub fn with_results<Array>(self, reuse: Array) -> InsertReuseBuilder<'f, IIB, Array>
162 where
163 Array: AsRef<[Option<Value>]>,
164 {
165 InsertReuseBuilder {
166 inserter: self.inserter,
167 reuse,
168 unused: PhantomData,
169 }
170 }
171
172 /// Reuse a single result value.
173 ///

Callers 1

with_resultMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected