pub trait CacheKey {
// Required method
fn cache_key(&self, state: &mut CacheKeyHasher);
}Expand description
Trait for values that can contribute to a deterministic package cache key.
Required Methods§
Sourcefn cache_key(&self, state: &mut CacheKeyHasher)
fn cache_key(&self, state: &mut CacheKeyHasher)
Write this value into the structured cache-key hasher.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".