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: TTrait Implementations§
impl<K: Copy, T: Copy> Copy for Block<K, T>
Auto Trait Implementations§
impl<K, T> Freeze for Block<K, T>
impl<K, T> RefUnwindSafe for Block<K, T>where
K: RefUnwindSafe,
T: RefUnwindSafe,
impl<K, T> Send for Block<K, T>
impl<K, T> Sync for Block<K, T>
impl<K, T> Unpin for Block<K, T>
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