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
type Cache: CacheRead + CacheWrite
[src]
Required methods
fn as_cache_ref(&self) -> &Self::Cache
[src]
Implementors
impl<C, W> AsCacheRef for Bytes<'_, C, W> where
C: CacheRead + CacheWrite,
[src]
C: CacheRead + CacheWrite,
type Cache = C
fn as_cache_ref(&self) -> &Self::Cache
[src]
impl<C, W> AsCacheRef for Fixity<C, W> where
C: CacheRead + CacheWrite,
[src]
C: CacheRead + CacheWrite,
type Cache = C
fn as_cache_ref(&self) -> &Self::Cache
[src]
impl<C, W> AsCacheRef for Map<'_, C, W> where
C: CacheRead + CacheWrite,
[src]
C: CacheRead + CacheWrite,