Struct arc_swap::cache::MapCache [−][src]
pub struct MapCache<A, T, F> { /* fields omitted */ }
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
impl<A, T, S, F, U> Access<U> for MapCache<A, T, F> where
A: Deref<Target = ArcSwapAny<T, S>>,
T: RefCnt,
S: LockStorage,
F: FnMut(&T) -> &U,
[src]
impl<A, T, S, F, U> Access<U> for MapCache<A, T, F> where
A: Deref<Target = ArcSwapAny<T, S>>,
T: RefCnt,
S: LockStorage,
F: FnMut(&T) -> &U,
[src]Auto Trait Implementations
impl<A, T, F> RefUnwindSafe for MapCache<A, T, F> where
A: RefUnwindSafe,
F: RefUnwindSafe,
T: RefUnwindSafe,
A: RefUnwindSafe,
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<A, T, F> Send for MapCache<A, T, F> where
A: Send,
F: Send,
T: Send,
A: Send,
F: Send,
T: Send,
impl<A, T, F> Sync for MapCache<A, T, F> where
A: Sync,
F: Sync,
T: Sync,
A: Sync,
F: Sync,
T: Sync,
impl<A, T, F> Unpin for MapCache<A, T, F> where
A: Unpin,
F: Unpin,
T: Unpin,
A: Unpin,
F: Unpin,
T: Unpin,
impl<A, T, F> UnwindSafe for MapCache<A, T, F> where
A: UnwindSafe,
F: UnwindSafe,
T: UnwindSafe,
A: UnwindSafe,
F: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more