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

Method drop

crates/wasmtime/src/runtime/component/instance.rs:1200–1207  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1198
1199 impl<T> Drop for DecrementComponentInstanceCountOnDrop<'_, T> {
1200 fn drop(&mut self) {
1201 if self.enabled {
1202 self.store
1203 .engine()
1204 .allocator()
1205 .decrement_component_instance_count();
1206 }
1207 }
1208 }
1209 }
1210}

Callers

nothing calls this directly

Calls 3

allocatorMethod · 0.45
engineMethod · 0.45

Tested by

no test coverage detected