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

Method intern_static

aiscript-vm/src/vm/state.rs:259–261  ·  view source on GitHub ↗
(&mut self, s: &'static str)

Source from the content-addressed store, hash-verified

257 }
258
259 pub fn intern_static(&mut self, s: &'static str) -> InternedString<'gc> {
260 self.strings.intern_static(self.mc, s.as_bytes())
261 }
262
263 pub fn get_chunk(&mut self, chunk_id: ChunkId) -> Result<Gc<'gc, Function<'gc>>, VmError> {
264 self.chunks.get(&chunk_id).copied().ok_or_else(|| {

Callers 1

Calls 1

as_bytesMethod · 0.80

Tested by

no test coverage detected