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

Method hash

crates/vm/src/builtins/int.rs:667–669  ·  view source on GitHub ↗
(zelf: &Py<Self>, _vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

665impl Hashable for PyInt {
666 #[inline]
667 fn hash(zelf: &Py<Self>, _vm: &VirtualMachine) -> PyResult<hash::PyHash> {
668 Ok(hash::hash_bigint(zelf.as_bigint()))
669 }
670}
671
672impl AsNumber for PyInt {

Callers

nothing calls this directly

Calls 2

hash_bigintFunction · 0.85
as_bigintMethod · 0.80

Tested by

no test coverage detected