Trait fixity::core::cache::AsCacheRef[][src]

pub trait AsCacheRef {
    type Cache: CacheRead + CacheWrite;
    fn as_cache_ref(&self) -> &Self::Cache;
}

A helper trait to allow a single T to return references to both a Workspace and a Cache.

See Commit for example usage.

Associated Types

Loading content...

Required methods

fn as_cache_ref(&self) -> &Self::Cache[src]

Loading content...

Implementors

impl<C, W> AsCacheRef for Bytes<'_, C, W> where
    C: CacheRead + CacheWrite
[src]

type Cache = C

impl<C, W> AsCacheRef for Fixity<C, W> where
    C: CacheRead + CacheWrite
[src]

type Cache = C

impl<C, W> AsCacheRef for Map<'_, C, W> where
    C: CacheRead + CacheWrite
[src]

type Cache = C

Loading content...