pub struct MemoryCappedHashmap { /* fields omitted */ }
Expand description
An LRU cache with hash map backing and an eviction rule based on the memory usage for object data in bytes.
Return a new instance which evicts least recently used items if it uses more than memory_cap_in_bytes
object data.
Store a fully decoded object at offset
of kind
with compressed_size
and data
in the cache. Read more
Attempt to fetch the object at offset
and store its decoded bytes in out
, as previously stored with DecodeEntry::put()
, and return
its (object kind
, decompressed_size
) Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,