Struct generational_cache::cache::lru_cache::Block
source · pub struct Block<K, T> {
pub key: K,
pub value: T,
}
Expand description
A cache block containing a key value pair.
Fields§
§key: K
§value: T
Trait Implementations§
impl<K: Copy, T: Copy> Copy for Block<K, T>
Auto Trait Implementations§
impl<K, T> RefUnwindSafe for Block<K, T>where K: RefUnwindSafe, T: RefUnwindSafe,
impl<K, T> Send for Block<K, T>where K: Send, T: Send,
impl<K, T> Sync for Block<K, T>where K: Sync, T: Sync,
impl<K, T> Unpin for Block<K, T>where K: Unpin, T: Unpin,
impl<K, T> UnwindSafe for Block<K, T>where K: UnwindSafe, T: UnwindSafe,
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