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

Method clear

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

Source from the content-addressed store, hash-verified

520 }
521
522 pub fn clear(&self) {
523 Radium::store(&self.inner, null_mut(), Ordering::Relaxed);
524 }
525
526 pub fn to_owned(&self) -> Option<PyObjectRef> {
527 self.load().map(|obj| obj.to_owned())

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected