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 Object<'_>

Source§

fn cache_key(&self) -> u128

Source§

impl CacheKey for bool

Source§

fn cache_key(&self) -> u128

Source§

impl CacheKey for u128

Source§

fn cache_key(&self) -> u128

Source§

impl CacheKey for Array<'_>

Source§

fn cache_key(&self) -> u128

Source§

impl CacheKey for Dict<'_>

Source§

fn cache_key(&self) -> u128

Source§

impl CacheKey for Name<'_>

Source§

fn cache_key(&self) -> u128

Source§

impl CacheKey for Null

Source§

fn cache_key(&self) -> u128

Source§

impl CacheKey for Number

Source§

fn cache_key(&self) -> u128

Source§

impl CacheKey for ObjRef

Source§

fn cache_key(&self) -> u128

Source§

impl CacheKey for Stream<'_>

Source§

fn cache_key(&self) -> u128

Source§

impl CacheKey for String<'_>

Source§

fn cache_key(&self) -> u128

Source§

impl CacheKey for Affine

Source§

fn cache_key(&self) -> u128

Source§

impl<T: CacheKey> CacheKey for MaybeRef<T>

Source§

fn cache_key(&self) -> u128

Source§

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

Source§

fn cache_key(&self) -> u128

Implementors§