Trait librashader_cache::CacheKey
source · pub trait CacheKey {
// 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.