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

Method borrow

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

Source from the content-addressed store, hash-verified

83impl<'gc, T: ?Sized + 'gc> Borrow<T> for Gc<'gc, T> {
84 #[inline]
85 fn borrow(&self) -> &T {
86 unsafe { &self.ptr.as_ref().value }
87 }
88}
89
90impl<'gc, T: Collect + 'gc> Gc<'gc, T> {

Callers

nothing calls this directly

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected