Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_code
Function · 0.45
bench_rustpython_code
Function · 0.45
criterion_benchmark
Function · 0.45
shell_exec
Function · 0.45
run_shell
Function · 0.45
get_pip
Function · 0.45
install_pip
Function · 0.45
run_file
Function · 0.45
run_rustpython
Function · 0.45
parse_args
Function · 0.45
parse_opts
Function · 0.45
split_paths
Function · 0.45
Calls
1
clone
Method · 0.45
Tested by
1
extract_annotations_from_annotate_code
Function · 0.36