Struct arc_swap::cache::MapCache [−][src]
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]
A: Deref<Target = ArcSwapAny<T, S>>,
T: RefCnt,
S: LockStorage,
F: FnMut(&T) -> &U,
impl<A: Clone, T: Clone, F: Clone> Clone for MapCache<A, T, F>
[src]
impl<A: Debug, T: Debug, F: Debug> Debug for MapCache<A, T, F>
[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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,