pub struct Caches(_);
Expand description
(internals) A type containing system-wide caches.
Exported under the internals
feature only.
The following caches are contained inside this type:
- A stack of function resolution caches
Implementations§
source§impl Caches
impl Caches
sourcepub fn fn_resolution_caches_len(&self) -> usize
pub fn fn_resolution_caches_len(&self) -> usize
Get the number of function resolution cache(s) in the stack.
sourcepub fn fn_resolution_cache_mut(&mut self) -> &mut FnResolutionCache
pub fn fn_resolution_cache_mut(&mut self) -> &mut FnResolutionCache
Get a mutable reference to the current function resolution cache.
sourcepub fn push_fn_resolution_cache(&mut self)
pub fn push_fn_resolution_cache(&mut self)
Push an empty function resolution cache onto the stack and make it current.
sourcepub fn rewind_fn_resolution_caches(&mut self, len: usize)
pub fn rewind_fn_resolution_caches(&mut self, len: usize)
Rewind the function resolution caches stack to a particular size.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Caches
impl !Send for Caches
impl !Sync for Caches
impl Unpin for Caches
impl !UnwindSafe for Caches
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