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

Method clone

crates/c-api/src/trap.rs:70–74  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

68// context by only cloning the error string.
69impl Clone for wasm_trap_t {
70 fn clone(&self) -> wasm_trap_t {
71 wasm_trap_t {
72 error: format_err!("{:?}", self.error),
73 }
74 }
75}
76
77wasmtime_c_api_macros::declare_ref!(wasm_trap_t);

Callers 1

wasm_frame_copyFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected