pub struct InMemoryMetadataStore { /* private fields */ }Expand description
In‑memory implementation of MetadataStore backed by a HashMap.
What: Holds metadata in a hash map where the key is the file path.
How: Provides a new constructor and implements the MetadataStore
trait methods by delegating to the underlying map.
Why: Offers a zero‑cost, dependency‑free store suitable for unit tests and simple scenarios. It can be replaced with a persistent store without changing callers.
Implementations§
Trait Implementations§
Source§impl MetadataStore for InMemoryMetadataStore
impl MetadataStore for InMemoryMetadataStore
Auto Trait Implementations§
impl Freeze for InMemoryMetadataStore
impl RefUnwindSafe for InMemoryMetadataStore
impl Send for InMemoryMetadataStore
impl Sync for InMemoryMetadataStore
impl Unpin for InMemoryMetadataStore
impl UnwindSafe for InMemoryMetadataStore
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