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

Method clone

crates/vm/src/object/ext.rs:155–158  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

153
154impl<T: PyPayload> Clone for PyRefExact<T> {
155 fn clone(&self) -> Self {
156 let inner = self.inner.clone();
157 Self { inner }
158 }
159}
160
161impl<T: PyPayload> TryFromObject for PyRefExact<T> {

Callers 15

__replace__Method · 0.45
construct_and_initMethod · 0.45
from_vectorcallMethod · 0.45
get_kwargMethod · 0.45
iterMethod · 0.45
try_fromMethod · 0.45
try_from_objectMethod · 0.45
try_from_objectMethod · 0.45
invokeMethod · 0.45
invoke_vectorcallMethod · 0.45
_trace_event_innerMethod · 0.45
__reduce__Method · 0.45

Calls

no outgoing calls

Tested by 2

test_buffered_readFunction · 0.36
test_buffered_valueFunction · 0.36