pub struct Caches { /* 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§
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.
A new function resolution cache is pushed onto the stack if the stack is empty.
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 Freeze for Caches
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Variant for T
impl<T> Variant for T
source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant
trait object to &mut dyn Any
.source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant
trait object to Box<dyn Any>
.