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

Method to_pyobject

crates/vm/src/dict_inner.rs:832–834  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

830 type Owned: ToPyObject;
831 fn _to_owned(&self, vm: &VirtualMachine) -> Self::Owned;
832 fn to_pyobject(&self, vm: &VirtualMachine) -> PyObjectRef {
833 self._to_owned(vm).to_pyobject(vm)
834 }
835 fn key_hash(&self, vm: &VirtualMachine) -> PyResult<HashValue>;
836 fn key_is(&self, other: &PyObject) -> bool;
837 fn key_eq(&self, vm: &VirtualMachine, other_key: &PyObject) -> PyResult<bool>;

Callers 4

insertMethod · 0.45
deleteMethod · 0.45
setdefaultMethod · 0.45
setdefault_entryMethod · 0.45

Implementers 1

dict_inner.rscrates/vm/src/dict_inner.rs

Calls 1

_to_ownedMethod · 0.80

Tested by

no test coverage detected