pub struct ReferenceCaches { /* private fields */ }Expand description
The caches a run of reference resolutions accumulates. The module
surface and spec caches persist across subjects; the dedup sets are
per-subject and cleared by begin_subject.
Implementations§
Source§impl ReferenceCaches
impl ReferenceCaches
Sourcepub fn begin_subject(&mut self)
pub fn begin_subject(&mut self)
Clear the per-subject dedup sets while keeping the module surface
and spec caches, so one m:f/a flags once per subject but a
module is read once per run.
Trait Implementations§
Source§impl Debug for ReferenceCaches
impl Debug for ReferenceCaches
Auto Trait Implementations§
impl Forget for ReferenceCaches
impl Freeze for ReferenceCaches
impl Move for ReferenceCaches
impl RefUnwindSafe for ReferenceCaches
impl Send for ReferenceCaches
impl Sync for ReferenceCaches
impl Unpin for ReferenceCaches
impl UnsafeUnpin for ReferenceCaches
impl UnwindSafe for ReferenceCaches
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