Struct gix_pack::cache::object::MemoryCappedHashmap
source · pub struct MemoryCappedHashmap { /* private fields */ }
Available on crate feature
object-cache-dynamic
only.Expand description
An LRU cache with hash map backing and an eviction rule based on the memory usage for object data in bytes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for MemoryCappedHashmap
impl Send for MemoryCappedHashmap
impl Sync for MemoryCappedHashmap
impl Unpin for MemoryCappedHashmap
impl UnwindSafe for MemoryCappedHashmap
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