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

Method intern_str

crates/vm/src/vm/context.rs:443–445  ·  view source on GitHub ↗
(&self, s: S)

Source from the content-addressed store, hash-verified

441 }
442
443 pub fn intern_str<S: InternableString>(&self, s: S) -> &'static PyStrInterned {
444 unsafe { self.string_pool.intern(s, self.types.str_type.to_owned()) }
445 }
446
447 pub fn interned_str<S: MaybeInternedString + ?Sized>(
448 &self,

Callers 15

js_to_pyFunction · 0.80
extend_classMethod · 0.80
module_execFunction · 0.80
py_initMethod · 0.80
delMethod · 0.80
get_future_repr_infoFunction · 0.80
get_task_repr_infoFunction · 0.80
sendMethod · 0.80
throwMethod · 0.80
get_stackMethod · 0.80
print_stackMethod · 0.80

Calls 2

internMethod · 0.80
to_ownedMethod · 0.45

Tested by

no test coverage detected