pub struct MapCache<A, T, F> { /* private fields */ }
Expand description
An implementation of a cache with a projection into the accessed value.
This is the implementation structure for Cache::map
. It can’t be created directly and it
should be used through the Access
trait.
Trait Implementations§
source§impl<A, T, S, F, U> Access<U> for MapCache<A, T, F>where
A: Deref<Target = ArcSwapAny<T, S>>,
T: RefCnt,
S: Strategy<T>,
F: FnMut(&T) -> &U,
impl<A, T, S, F, U> Access<U> for MapCache<A, T, F>where A: Deref<Target = ArcSwapAny<T, S>>, T: RefCnt, S: Strategy<T>, F: FnMut(&T) -> &U,
Auto Trait Implementations§
impl<A, T, F> RefUnwindSafe for MapCache<A, T, F>where A: RefUnwindSafe, F: RefUnwindSafe, T: RefUnwindSafe,
impl<A, T, F> Send for MapCache<A, T, F>where A: Send, F: Send, T: Send,
impl<A, T, F> Sync for MapCache<A, T, F>where A: Sync, F: Sync, T: Sync,
impl<A, T, F> Unpin for MapCache<A, T, F>where A: Unpin, F: Unpin, T: Unpin,
impl<A, T, F> UnwindSafe for MapCache<A, T, F>where A: UnwindSafe, F: UnwindSafe, T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more