Struct generational_lru::lrucache::Block
source · [−]pub struct Block<K, V> {
pub key: K,
pub value: V,
}
Expand description
Cache block storing some key and value.
Fields
key: K
value: V
Auto Trait Implementations
impl<K, V> RefUnwindSafe for Block<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Block<K, V> where
K: Send,
V: Send,
impl<K, V> Sync for Block<K, V> where
K: Sync,
V: Sync,
impl<K, V> Unpin for Block<K, V> where
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for Block<K, V> where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more