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

Method drop

tests/all/component_model/bindgen.rs:360–368  ·  view source on GitHub ↗
(&mut self, val: Resource<X>)

Source from the content-addressed store, hash-verified

358 }
359
360 fn drop(&mut self, val: Resource<X>) -> Result<()> {
361 match self.drops {
362 0 => assert_eq!(val.rep(), 40),
363 1 => assert_eq!(val.rep(), 80),
364 _ => unreachable!(),
365 }
366 self.drops += 1;
367 Ok(())
368 }
369 }
370
371 impl ResourcesImports for MyImports {}

Callers

nothing calls this directly

Calls 3

OkFunction · 0.85
pushMethod · 0.45
repMethod · 0.45

Tested by

no test coverage detected