usecrate::HashFn;usestd::convert::TryInto;/// A hash function that simply takes the last 4 bytes of a given key as the
/// hash value.
#[derive(Eq, PartialEq)]pubstructUnHashFn;implHashFn forUnHashFn{#[inline]fnhash(bytes:&[u8])->u32{let len = bytes.len();u32::from_le_bytes(bytes[len -4..].try_into().unwrap())}}