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

Method clone

crates/vm/src/frame.rs:554–560  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

552
553impl Clone for FrameLocals {
554 fn clone(&self) -> Self {
555 let cell = OnceCell::new();
556 if let Some(locals) = self.inner.get() {
557 let _ = cell.set(locals.clone());
558 }
559 Self { inner: cell }
560 }
561}
562
563unsafe impl Traverse for FrameLocals {

Callers 15

pushMethod · 0.45
pop_keepMethod · 0.45
formatMethod · 0.45
iter_unpackMethod · 0.45
error_typeFunction · 0.45
tcsetattrFunction · 0.45
_servername_callbackFunction · 0.45
_msg_callbackFunction · 0.45
sni_callbackMethod · 0.45
msg_callbackMethod · 0.45
_wrap_socketMethod · 0.45
_wrap_bioMethod · 0.45

Calls 3

newFunction · 0.85
getMethod · 0.45
setMethod · 0.45

Tested by 3

process_instructionMethod · 0.36
get_functionMethod · 0.36