Skip to main content

CacheKey

Trait CacheKey 

Source
pub trait CacheKey {
    // Required method
    fn cache_key(&self, state: &mut dyn Hasher);

    // Provided method
    fn cache_key_hash(&self) -> u64 { ... }
}

Required Methods§

Source

fn cache_key(&self, state: &mut dyn Hasher)

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§