pub struct CacheSlot { /* private fields */ }Expand description
v2.89.0 — a reserved place to put a computed value, handed out by
CacheRuntime::probe on a miss and consumed by CacheRuntime::store.
It carries the derived key rather than the inputs, so the value is stored under the key the lookup missed on — a caller cannot accidentally store against a key derived from arguments that changed in between.
Trait Implementations§
impl Eq for CacheSlot
impl StructuralPartialEq for CacheSlot
Auto Trait Implementations§
impl Freeze for CacheSlot
impl RefUnwindSafe for CacheSlot
impl Send for CacheSlot
impl Sync for CacheSlot
impl Unpin for CacheSlot
impl UnsafeUnpin for CacheSlot
impl UnwindSafe for CacheSlot
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