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

Method to_owned

crates/vm/src/intern.rs:170–172  ·  view source on GitHub ↗
(&'static self)

Source from the content-addressed store, hash-verified

168
169 #[inline]
170 pub fn to_owned(&'static self) -> PyRef<T> {
171 unsafe { (*(&self as *const _ as *const PyRef<T>)).clone() }
172 }
173
174 #[inline]
175 pub fn to_object(&'static self) -> PyObjectRef {

Callers 15

bench_rustpython_codeFunction · 0.45
bench_rustpython_codeFunction · 0.45
criterion_benchmarkFunction · 0.45
shell_execFunction · 0.45
run_shellFunction · 0.45
get_pipFunction · 0.45
install_pipFunction · 0.45
run_fileFunction · 0.45
run_rustpythonFunction · 0.45
parse_argsFunction · 0.45
parse_optsFunction · 0.45
split_pathsFunction · 0.45

Calls 1

cloneMethod · 0.45

Tested by 1