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

Method hash

crates/vm/src/intern.rs:98–100  ·  view source on GitHub ↗
(&self, state: &mut H)

Source from the content-addressed store, hash-verified

96
97impl core::hash::Hash for CachedPyStrRef {
98 fn hash<H: core::hash::Hasher>(&self, state: &mut H) {
99 self.inner.as_wtf8().hash(state)
100 }
101}
102
103impl PartialEq for CachedPyStrRef {

Callers

nothing calls this directly

Calls 2

as_wtf8Method · 0.45
get_idMethod · 0.45

Tested by

no test coverage detected