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

Method drop

aiscript-arena/src/dynamic_roots.rs:131–135  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

129
130impl<R: for<'gc> Rootable<'gc>> Drop for DynamicRoot<R> {
131 fn drop(&mut self) {
132 if let Some(slots) = self.slots.upgrade() {
133 slots.borrow_mut().dec(self.index);
134 }
135 }
136}
137
138impl<R: for<'gc> Rootable<'gc>> Clone for DynamicRoot<R> {

Callers

nothing calls this directly

Calls 4

decMethod · 0.80
upgradeMethod · 0.45
borrow_mutMethod · 0.45

Tested by

no test coverage detected