Skip to main content

CacheKey

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".

Implementors§