Function key_okay

Source
pub(crate) fn key_okay<K: Key>(key: K) -> bool
Expand description

Return true if this key is apparently valid.

We should use debug_assert! to test this on every new key, every time an entry is inserted.

If inserting an entry results in a not valid key, we have messed up, and allowed a version counter to grow too high.