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

Method load

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

Source from the content-addressed store, hash-verified

511 }
512
513 pub fn load(&self) -> Option<&PyObject> {
514 let ptr = Radium::load(&self.inner, Ordering::Relaxed);
515 if ptr.is_null() {
516 None
517 } else {
518 Some(unsafe { &*(ptr as *const PyObject) })
519 }
520 }
521
522 pub fn clear(&self) {
523 Radium::store(&self.inner, null_mut(), Ordering::Relaxed);

Callers 15

__length_hint__Method · 0.45
set_verify_modeMethod · 0.45
check_hostnameMethod · 0.45
new_py_ssl_socketMethod · 0.45
is_bio_eofMethod · 0.45
eofMethod · 0.45
writeMethod · 0.45
init_innerMethod · 0.45
get_timeoutMethod · 0.45
extract_addressMethod · 0.45
connect_innerMethod · 0.45
gettimeoutMethod · 0.45

Calls 2

loadFunction · 0.50
SomeClass · 0.50

Tested by

no test coverage detected