[][src]Trait dashcache::Caches

pub trait Caches<T: ?Sized>: Hash + Eq + Clone + CanCollect {
    fn cached(&self) -> &T;
}

A container which can be used to cache values of type T

Required methods

fn cached(&self) -> &T

Get a reference to the cached value of type T

Loading content...

Implementations on Foreign Types

impl<T: Hash + Eq + ?Sized> Caches<T> for Arc<T>[src]

impl<T: Hash + Eq + ?Sized> Caches<T> for Arc<T>[src]

impl<T: Hash + Eq + ?Sized> Caches<T> for Rc<T>[src]

Loading content...

Implementors

impl<A: Eq + Deref, P> Caches<[A]> for CachedArr<A, P>[src]

Loading content...