pub struct RefMut<'cache, Key, Val, We: Weighter<Key, Val>, B, L, Plh: SharedPlaceholder> {
cache: &'cache mut CacheShard<Key, Val, We, B, L, Plh>,
idx: NonZeroU32,
old_weight: u64,
}Expand description
Structure wrapping a mutable reference to a cached item.
Fields§
§cache: &'cache mut CacheShard<Key, Val, We, B, L, Plh>§idx: NonZeroU32§old_weight: u64Implementations§
Trait 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