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

Method dict

crates/vm/src/object/core.rs:1459–1461  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1457
1458 #[inline(always)]
1459 pub fn dict(&self) -> Option<PyDictRef> {
1460 self.instance_dict().map(|d| d.get())
1461 }
1462
1463 /// Set the dict field. Returns `Err(dict)` if this object does not have a dict field
1464 /// in the first place.

Calls 3

instance_dictMethod · 0.80
mapMethod · 0.45
getMethod · 0.45