Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
new
Method · 0.45
Calls
7
set_next
Method · 0.80
set_live
Method · 0.80
set_needs_trace
Method · 0.80
size_of_box
Method · 0.80
mark_gc_allocated
Method · 0.80
get
Method · 0.45
set
Method · 0.45
Tested by
no test coverage detected