pub struct CacheState<K, V> {
pub capacity: usize,
/* private fields */
}Expand description
Complete valid cache state ordered least- to most-recently used.
Fields§
§capacity: usizePositive maximum number of entries.
Implementations§
Trait Implementations§
Source§impl<K: Clone, V: Clone> Clone for CacheState<K, V>
impl<K: Clone, V: Clone> Clone for CacheState<K, V>
Source§fn clone(&self) -> CacheState<K, V>
fn clone(&self) -> CacheState<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 moreimpl<K: Eq, V: Eq> Eq for CacheState<K, V>
impl<K, V> StructuralPartialEq for CacheState<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for CacheState<K, V>
impl<K, V> RefUnwindSafe for CacheState<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for CacheState<K, V>
impl<K, V> Sync for CacheState<K, V>
impl<K, V> Unpin for CacheState<K, V>
impl<K, V> UnsafeUnpin for CacheState<K, V>
impl<K, V> UnwindSafe for CacheState<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