pub struct MemoryModuleCache { /* private fields */ }Expand description
An in-process ModuleCache for long-lived hosts (watch mode, the language server, the MCP server).
Every entry carries a mark set when it is read or written; MemoryModuleCache::prune_unused drops the entries
without a mark and clears the marks, so a host that prunes after each run keeps only what its last run used.
Implementations§
Trait Implementations§
Source§impl Debug for MemoryModuleCache
impl Debug for MemoryModuleCache
Source§impl Default for MemoryModuleCache
impl Default for MemoryModuleCache
Source§impl ModuleCache for MemoryModuleCache
impl ModuleCache for MemoryModuleCache
Auto Trait Implementations§
impl !Freeze for MemoryModuleCache
impl Forget for MemoryModuleCache
impl Move for MemoryModuleCache
impl RefUnwindSafe for MemoryModuleCache
impl Send for MemoryModuleCache
impl Sync for MemoryModuleCache
impl Unpin for MemoryModuleCache
impl UnsafeUnpin for MemoryModuleCache
impl UnwindSafe for MemoryModuleCache
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more