use crate::odht::HashFn;
use core::convert::TryInto;
#[derive(Eq, PartialEq)]
pub struct UnHashFn;
impl HashFn for UnHashFn {
#[inline]
fn hash(bytes: &[u8]) -> u32 {
let len = bytes.len();
u32::from_le_bytes(bytes[len - 4..].try_into().unwrap())
}
}