pub struct Caches<'a> { /* private fields */ }
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
sourceimpl 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<'a> !RefUnwindSafe for Caches<'a>
impl<'a> !Send for Caches<'a>
impl<'a> !Sync for Caches<'a>
impl<'a> Unpin for Caches<'a>
impl<'a> !UnwindSafe for Caches<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more