Struct chalk_recursive::Cache
source · pub struct Cache<K, V>{
data: Arc<Mutex<CacheData<K, V>>>,
}
Expand description
The “cache” stores results for goals that we have completely solved. Things are added to the cache when we have completely processed their result, and it can be shared amongst many solvers.
Fields§
§data: Arc<Mutex<CacheData<K, V>>>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<K, V> RefUnwindSafe for Cache<K, V>
impl<K, V> Send for Cache<K, V>
impl<K, V> Sync for Cache<K, V>
impl<K, V> Unpin for Cache<K, V>
impl<K, V> UnwindSafe for Cache<K, V>
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