pub struct CacheManager { /* private fields */ }Expand description
Global cache manager for all kernel caches
Implementations§
Source§impl CacheManager
impl CacheManager
Sourcepub fn with_capacities(
whnf_cap: usize,
defeq_cap: usize,
infer_cap: usize,
) -> Self
pub fn with_capacities( whnf_cap: usize, defeq_cap: usize, infer_cap: usize, ) -> Self
Create a cache manager with custom capacities
Sourcepub fn defeq_mut(&mut self) -> &mut DefEqCache
pub fn defeq_mut(&mut self) -> &mut DefEqCache
Get mutable reference to DefEq cache
Sourcepub fn infer_mut(&mut self) -> &mut InferCache
pub fn infer_mut(&mut self) -> &mut InferCache
Get mutable reference to Infer cache
Sourcepub fn resize_all(
&mut self,
whnf_cap: usize,
defeq_cap: usize,
infer_cap: usize,
)
pub fn resize_all( &mut self, whnf_cap: usize, defeq_cap: usize, infer_cap: usize, )
Resize all caches to new capacities
Sourcepub fn statistics(&self) -> CacheStatistics
pub fn statistics(&self) -> CacheStatistics
Get comprehensive statistics for all caches
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CacheManager
impl RefUnwindSafe for CacheManager
impl Send for CacheManager
impl Sync for CacheManager
impl Unpin for CacheManager
impl UnsafeUnpin for CacheManager
impl UnwindSafe for CacheManager
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