Skip to main content

CacheKey

Trait CacheKey 

Source
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§

Source

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

Implementations on Foreign Types§

Source§

impl CacheKey for Path

Source§

fn cache_key(&self, state: &mut CacheKeyHasher)

Source§

impl CacheKey for PathBuf

Source§

fn cache_key(&self, state: &mut CacheKeyHasher)

Source§

impl CacheKey for String

Source§

fn cache_key(&self, state: &mut CacheKeyHasher)

Source§

impl CacheKey for bool

Source§

fn cache_key(&self, state: &mut CacheKeyHasher)

Source§

impl CacheKey for str

Source§

fn cache_key(&self, state: &mut CacheKeyHasher)

Source§

impl CacheKey for u8

Source§

fn cache_key(&self, state: &mut CacheKeyHasher)

Source§

impl CacheKey for u32

Source§

fn cache_key(&self, state: &mut CacheKeyHasher)

Source§

impl CacheKey for u64

Source§

fn cache_key(&self, state: &mut CacheKeyHasher)

Source§

impl CacheKey for u128

Source§

fn cache_key(&self, state: &mut CacheKeyHasher)

Source§

impl CacheKey for usize

Source§

fn cache_key(&self, state: &mut CacheKeyHasher)

Source§

impl<K, V> CacheKey for BTreeMap<K, V>
where K: CacheKey + Ord, V: CacheKey,

Source§

fn cache_key(&self, state: &mut CacheKeyHasher)

Source§

impl<T: CacheKey + ?Sized> CacheKey for &T

Source§

fn cache_key(&self, state: &mut CacheKeyHasher)

Source§

impl<T: CacheKey> CacheKey for Option<T>

Source§

fn cache_key(&self, state: &mut CacheKeyHasher)

Source§

impl<T: CacheKey> CacheKey for Vec<T>

Source§

fn cache_key(&self, state: &mut CacheKeyHasher)

Source§

impl<T: CacheKey> CacheKey for [T]

Source§

fn cache_key(&self, state: &mut CacheKeyHasher)

Implementors§