Trait CacheKey

Source
pub trait CacheKey: 'static + Hash {
    type Target;
}
Expand description

A key that is usable in a cache.

Cache keys are required to declare the type of values they reference. This is needed to implement type-level namespacing.

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§