MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / str_hash

Function str_hash

aiscript-vm/src/string/interned.rs:165–169  ·  view source on GitHub ↗
(s: &[u8])

Source from the content-addressed store, hash-verified

163}
164
165fn str_hash(s: &[u8]) -> u64 {
166 let mut state = AHasher::default();
167 state.write(s);
168 state.finish()
169}
170
171impl fmt::Display for InternedString<'_> {
172 fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {

Callers 4

from_bufferMethod · 0.85
createMethod · 0.85
from_staticMethod · 0.85
internMethod · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected