pub struct RawCacheMapShard<K, V, S, Lock> { /* private fields */ }Implementations§
Source§impl<K, V, S, Lock> RawCacheMapShard<K, V, S, Lock>
impl<K, V, S, Lock> RawCacheMapShard<K, V, S, Lock>
pub const fn new(hasher: S) -> Self
pub fn get_or_insert( &self, key: &K, value: impl FnOnce() -> V, ) -> MappedRwLockReadGuard<'_, Lock, (K, V)>
Auto Trait Implementations§
impl<K, V, S, Lock> !Freeze for RawCacheMapShard<K, V, S, Lock>
impl<K, V, S, Lock> !RefUnwindSafe for RawCacheMapShard<K, V, S, Lock>
impl<K, V, S, Lock> Send for RawCacheMapShard<K, V, S, Lock>
impl<K, V, S, Lock> Sync for RawCacheMapShard<K, V, S, Lock>
impl<K, V, S, Lock> Unpin for RawCacheMapShard<K, V, S, Lock>
impl<K, V, S, Lock> UnwindSafe for RawCacheMapShard<K, V, S, Lock>
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