MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / as_ref

Method as_ref

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

Source from the content-addressed store, hash-verified

76impl<'gc, T: ?Sized + 'gc> AsRef<T> for Gc<'gc, T> {
77 #[inline]
78 fn as_ref(&self) -> &T {
79 unsafe { &self.ptr.as_ref().value }
80 }
81}
82
83impl<'gc, T: ?Sized + 'gc> Borrow<T> for Gc<'gc, T> {

Callers 15

peekMethod · 0.45
borrowMethod · 0.45
try_borrowMethod · 0.45
is_droppedMethod · 0.45
resurrectMethod · 0.45
headerMethod · 0.45
derefMethod · 0.45
borrowMethod · 0.45
unlockMethod · 0.45
writeMethod · 0.45
is_deadMethod · 0.45
traceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected