MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / drop

Method drop

aiscript-vm/src/string/interned.rs:53–61  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

51
52 impl Drop for Owned {
53 fn drop(&mut self) {
54 match self.header.buffer {
55 Buffer::Indirect(ptr) => unsafe {
56 self.metrics.mark_external_deallocation((*ptr).len());
57 drop(Box::from_raw(ptr as *mut [u8]));
58 },
59 Buffer::Inline(_) => unreachable!(),
60 }
61 }
62 }
63
64 let metrics = mc.metrics().clone();

Callers

nothing calls this directly

Calls 2

lenMethod · 0.80

Tested by

no test coverage detected