Function key_version_is_maximal

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

Return true if the version number for this key should not be allowed to grow any larger.

We should call this whenever we are about to remove an entry with a given key. If it returns true, we should instead replace the entry with Entry::Unusable