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

Method clone

crates/debugger/src/host/api.rs:387–390  ·  view source on GitHub ↗
(&mut self, self_: Resource<Instance>)

Source from the content-addressed store, hash-verified

385 }
386
387 async fn clone(&mut self, self_: Resource<Instance>) -> Result<Resource<Instance>> {
388 let instance = *self.get(&self_)?;
389 Ok(self.push(instance)?)
390 }
391
392 async fn unique_id(&mut self, self_: Resource<Instance>) -> Result<u64> {
393 let instance = self.get(&self_)?;

Callers 15

add_breakpointMethod · 0.45
remove_breakpointMethod · 0.45
setMethod · 0.45
set_elementMethod · 0.45
get_tagMethod · 0.45
get_valuesMethod · 0.45
makeMethod · 0.45
get_instanceMethod · 0.45
get_func_indexMethod · 0.45
get_pcMethod · 0.45
get_localsMethod · 0.45
get_stackMethod · 0.45

Calls 4

OkFunction · 0.85
getFunction · 0.50
getMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected