pub trait CacheKey: RefUnwindSafe {
// Required method
fn hash_bytes(&self) -> &[u8] ⓘ;
}
Expand description
Trait for objects that can be used as part of a key for a cached object.
Required Methods§
Sourcefn hash_bytes(&self) -> &[u8] ⓘ
fn hash_bytes(&self) -> &[u8] ⓘ
Get a byte representation of the object that will be fed into the hash.