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
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 !RefUnwindSafe for Caches
impl !Send for Caches
impl !Sync for Caches
impl Unpin for Caches
impl !UnwindSafe for Caches
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more