pub(crate) struct FixedCache<K, V>([Option<(K, V)>; 1024]);
Expand description
Very stupid/simple key-value cache. TODO(emilk): improve
Tuple Fields§
§0: [Option<(K, V)>; 1024]
Implementations§
Trait Implementations§
Source§impl<K: Clone, V: Clone> Clone for FixedCache<K, V>
impl<K: Clone, V: Clone> Clone for FixedCache<K, V>
Source§fn clone(&self) -> FixedCache<K, V>
fn clone(&self) -> FixedCache<K, V>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<K, V> Debug for FixedCache<K, V>
impl<K, V> Debug for FixedCache<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for FixedCache<K, V>
impl<K, V> RefUnwindSafe for FixedCache<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for FixedCache<K, V>
impl<K, V> Sync for FixedCache<K, V>
impl<K, V> Unpin for FixedCache<K, V>
impl<K, V> UnwindSafe for FixedCache<K, V>where
K: UnwindSafe,
V: 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