pub struct RefMut<'cache, Key, Val, We: Weighter<Key, Val>, B, L, Plh: SharedPlaceholder> {
guard: WeightGuard<Key, Val, We, B, L, Plh>,
_phantom: PhantomData<&'cache mut CacheShard<Key, Val, We, B, L, Plh>>,
}Expand description
Structure wrapping a mutable reference to a cached item.
On drop, recomputes weight via the inner WeightGuard.
Fields§
§guard: WeightGuard<Key, Val, We, B, L, Plh>§_phantom: PhantomData<&'cache mut CacheShard<Key, Val, We, B, L, Plh>>Implementations§
Auto Trait Implementations§
impl<'cache, Key, Val, We, B, L, Plh> Freeze for RefMut<'cache, Key, Val, We, B, L, Plh>
impl<'cache, Key, Val, We, B, L, Plh> RefUnwindSafe for RefMut<'cache, Key, Val, We, B, L, Plh>where
B: RefUnwindSafe,
We: RefUnwindSafe,
L: RefUnwindSafe,
Key: RefUnwindSafe,
Val: RefUnwindSafe,
Plh: RefUnwindSafe,
impl<'cache, Key, Val, We, B, L, Plh> !Send for RefMut<'cache, Key, Val, We, B, L, Plh>
impl<'cache, Key, Val, We, B, L, Plh> !Sync for RefMut<'cache, Key, Val, We, B, L, Plh>
impl<'cache, Key, Val, We, B, L, Plh> Unpin for RefMut<'cache, Key, Val, We, B, L, Plh>
impl<'cache, Key, Val, We, B, L, Plh> !UnwindSafe for RefMut<'cache, Key, Val, We, B, L, Plh>
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