CacheKey

Trait CacheKey 

Source
pub trait CacheKey {
    // Required method
    fn cache_key(&self) -> u128;
}
Expand description

A trait for objects that can generate a unique cache key.

Required Methods§

Source

fn cache_key(&self) -> u128

Returns the cache key for this object.

Implementations on Foreign Types§

Source§

impl CacheKey for Dict<'_>

Source§

fn cache_key(&self) -> u128

Source§

impl CacheKey for Stream<'_>

Source§

fn cache_key(&self) -> u128

Source§

impl CacheKey for Affine

Source§

fn cache_key(&self) -> u128

Source§

impl<T: CacheKey, U: CacheKey> CacheKey for (T, U)

Source§

fn cache_key(&self) -> u128

Implementors§