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

Method deref

aiscript-arena/src/gc.rs:71–73  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

69
70 #[inline]
71 fn deref(&self) -> &T {
72 unsafe { &self.ptr.as_ref().value }
73 }
74}
75
76impl<'gc, T: ?Sized + 'gc> AsRef<T> for Gc<'gc, T> {

Callers

nothing calls this directly

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected