MCPcopy Index your code
hub / github.com/RustPython/RustPython / new_utf8_str

Method new_utf8_str

crates/vm/src/vm/context.rs:538–540  ·  view source on GitHub ↗
(&self, s: impl Into<PyUtf8Str>)

Source from the content-addressed store, hash-verified

536
537 #[inline]
538 pub fn new_utf8_str(&self, s: impl Into<PyUtf8Str>) -> PyRef<PyUtf8Str> {
539 s.into().into_ref(self)
540 }
541
542 pub fn interned_or_new_str<S, M>(&self, s: S) -> PyRef<PyStr>
543 where

Callers 15

lookupMethod · 0.80
make_frozenFunction · 0.80
import_frozenFunction · 0.80
import_builtinFunction · 0.80
import_code_objFunction · 0.80
import_module_levelFunction · 0.80
resolve_nameFunction · 0.80
calc_packageFunction · 0.80
import_fromMethod · 0.80
to_pyexceptionMethod · 0.80
_frozen_module_namesFunction · 0.80

Calls 1

into_refMethod · 0.45

Tested by

no test coverage detected