MCPcopy Create free account
hub / github.com/DjDeveloperr/deno_desktop / hash

Function hash

src/util.rs:5–9  ·  view source on GitHub ↗
(t: T)

Source from the content-addressed store, hash-verified

3use std::hash::Hasher;
4
5pub fn hash<T: Hash>(t: T) -> u32 {
6 let mut s = DefaultHasher::new();
7 t.hash(&mut s);
8 s.finish() as u32
9}

Callers 1

op_create_windowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected