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

Method hash

crates/vm/src/builtins/mappingproxy.rs:222–226  ·  view source on GitHub ↗
(zelf: &Py<Self>, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

220impl Hashable for PyMappingProxy {
221 #[inline]
222 fn hash(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<hash::PyHash> {
223 // Delegate hash to the underlying mapping
224 let obj = zelf.to_object(vm)?;
225 obj.hash(vm)
226 }
227}
228
229impl AsMapping for PyMappingProxy {

Callers

nothing calls this directly

Calls 1

to_objectMethod · 0.45

Tested by

no test coverage detected