pub type KeySelector<T, K> = Rc<dyn Fn(&T) -> K>;
The key selector of a cache (Func<TObject, TKey>).
Func<TObject, TKey>
pub struct KeySelector<T, K> { /* private fields */ }