MCPcopy 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
103impl<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
112impl<T> Default for Dict<T> {

Callers 12

get_hintMethod · 0.45
_get_innerMethod · 0.45
setdefaultMethod · 0.45
setdefault_entryMethod · 0.45
next_entryMethod · 0.45
prev_entryMethod · 0.45
keysMethod · 0.45
valuesMethod · 0.45
itemsMethod · 0.45
lookupMethod · 0.45
_to_ownedMethod · 0.45
test_insertFunction · 0.45

Calls 2

newFunction · 0.85
readMethod · 0.45

Tested by 1

test_insertFunction · 0.36