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

Method allocate

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

Source from the content-addressed store, hash-verified

69
70 #[inline]
71 pub(crate) fn allocate<T: Collect + 'gc>(&self, t: T) -> NonNull<GcBoxInner<T>> {
72 self.context.allocate(t)
73 }
74
75 #[inline]
76 pub(crate) fn upgrade(&self, gc_box: GcBox) -> bool {

Callers 1

newMethod · 0.45

Calls 7

set_nextMethod · 0.80
set_liveMethod · 0.80
set_needs_traceMethod · 0.80
size_of_boxMethod · 0.80
mark_gc_allocatedMethod · 0.80
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected