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

Function hash_iter

crates/vm/src/utils.rs:10–15  ·  view source on GitHub ↗
(
    iter: I,
    vm: &VirtualMachine,
)

Source from the content-addressed store, hash-verified

8};
9
10pub fn hash_iter<'a, I: IntoIterator<Item = &'a PyObjectRef>>(
11 iter: I,
12 vm: &VirtualMachine,
13) -> PyResult<rustpython_common::hash::PyHash> {
14 vm.state.hash_secret.hash_iter(iter, |obj| obj.hash(vm))
15}
16
17impl ToPyObject for core::convert::Infallible {
18 fn to_pyobject(self, _vm: &VirtualMachine) -> PyObjectRef {

Callers

nothing calls this directly

Calls 2

hash_iterMethod · 0.80
hashMethod · 0.45

Tested by

no test coverage detected