Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ clone
Method
clone
crates/vm/src/dict_inner.rs:104–109 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
102
103
impl<T: Clone> Clone for Dict<T> {
104
fn clone(&self) -> Self {
105
Self {
106
inner: PyRwLock::new(self.inner.read().clone()),
107
version: AtomicU64::new(0),
108
}
109
}
110
}
111
112
impl<T> Default for Dict<T> {
Callers
12
get_hint
Method · 0.45
_get_inner
Method · 0.45
setdefault
Method · 0.45
setdefault_entry
Method · 0.45
next_entry
Method · 0.45
prev_entry
Method · 0.45
keys
Method · 0.45
values
Method · 0.45
items
Method · 0.45
lookup
Method · 0.45
_to_owned
Method · 0.45
test_insert
Function · 0.45
Calls
2
new
Function · 0.85
read
Method · 0.45
Tested by
1
test_insert
Function · 0.36