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

Method push_input

crates/wasmtime/src/compile.rs:296–301  ·  view source on GitHub ↗
(
        &mut self,
        f: impl FnOnce(&dyn Compiler) -> Result<CompileOutput<'a>> + Send + 'a,
    )

Source from the content-addressed store, hash-verified

294
295impl<'a> CompileInputs<'a> {
296 fn push_input(
297 &mut self,
298 f: impl FnOnce(&dyn Compiler) -> Result<CompileOutput<'a>> + Send + 'a,
299 ) {
300 self.inputs.push(Box::new(f));
301 }
302
303 /// Create the `CompileInputs` for a core Wasm module.
304 fn for_module(

Callers 2

for_componentMethod · 0.80

Calls 2

newFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected