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

Method into_pyref_exact

crates/vm/src/intern.rs:266–269  ·  view source on GitHub ↗
(self, str_type: PyTypeRef)

Source from the content-addressed store, hash-verified

264 type Interned = str;
265 #[inline]
266 fn into_pyref_exact(self, str_type: PyTypeRef) -> PyRefExact<PyStr> {
267 let obj = PyRef::new_ref(PyStr::from(self), str_type, None);
268 unsafe { PyRefExact::new_unchecked(obj) }
269 }
270}
271
272impl InternableString for &str {

Callers 1

internMethod · 0.80

Calls 1

to_ownedMethod · 0.45

Tested by

no test coverage detected