Skip to main content

HashFn

Type Alias HashFn 

Source
pub type HashFn = unsafe fn(payload: *const u8, hasher: &mut dyn DynamicHasher);
Expand description

hash callback shape: feed the value’s structural identity into a hasher. None on the descriptor means the type is not hashable.

§Safety

payload must point at a value of the descriptor’s type.