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

Method gc_ref

aiscript-vm/src/vm/state.rs:251–253  ·  view source on GitHub ↗
(&mut self, value: T)

Source from the content-addressed store, hash-verified

249 }
250
251 pub fn gc_ref<T: Collect>(&mut self, value: T) -> GcRefLock<'gc, T> {
252 Gc::new(self.mc, RefLock::new(value))
253 }
254
255 pub fn intern(&mut self, s: &[u8]) -> InternedString<'gc> {
256 self.strings.intern(self.mc, s)

Callers 1

make_response_objectFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected