pub struct CacheHandle<'cache, 'brand, K, V> { /* private fields */ }Implementations§
Source§impl<'cache, 'brand, K: Hash + Eq, V> CacheHandle<'cache, 'brand, K, V>
impl<'cache, 'brand, K: Hash + Eq, V> CacheHandle<'cache, 'brand, K, V>
pub fn len<'handle, 'perm>(&'handle self) -> usize
pub fn is_empty<'sperm>(&self) -> bool
pub fn cap<'sperm>(&self) -> NonZeroUsize
pub fn put<'handle, 'perm>( &'handle mut self, k: K, v: V, _perm: &'perm mut ValuePerm<'brand>, ) -> Option<V>
pub fn get<'handle, 'perm>( &mut self, k: &K, _perm: &'perm ValuePerm<'brand>, ) -> Option<&'perm V>
pub fn peek_mut<'handle, 'key, 'perm>( &'handle self, k: &'key K, _perm: &'perm mut ValuePerm<'brand>, ) -> Option<&'perm mut V>
Auto Trait Implementations§
impl<'cache, 'brand, K, V> Freeze for CacheHandle<'cache, 'brand, K, V>
impl<'cache, 'brand, K, V> RefUnwindSafe for CacheHandle<'cache, 'brand, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'cache, 'brand, K, V> !Send for CacheHandle<'cache, 'brand, K, V>
impl<'cache, 'brand, K, V> !Sync for CacheHandle<'cache, 'brand, K, V>
impl<'cache, 'brand, K, V> Unpin for CacheHandle<'cache, 'brand, K, V>
impl<'cache, 'brand, K, V> !UnwindSafe for CacheHandle<'cache, 'brand, K, V>
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