pub struct PerfectByteHashMapCacheOwned {
data: BTreeMap<Vec<u8>, PerfectByteHashMap<Vec<u8>>>,
}
Expand description
Helper class for caching the results of multiple PerfectByteHashMap
calculations.
Fields§
§data: BTreeMap<Vec<u8>, PerfectByteHashMap<Vec<u8>>>
Implementations§
source§impl PerfectByteHashMapCacheOwned
impl PerfectByteHashMapCacheOwned
sourcepub fn try_get_or_insert(
&mut self,
keys: Vec<u8>,
) -> Result<&PerfectByteHashMap<[u8]>, Error>
pub fn try_get_or_insert( &mut self, keys: Vec<u8>, ) -> Result<&PerfectByteHashMap<[u8]>, Error>
Gets the PerfectByteHashMap
for the given bytes, calculating it if necessary.
Auto Trait Implementations§
impl Freeze for PerfectByteHashMapCacheOwned
impl RefUnwindSafe for PerfectByteHashMapCacheOwned
impl Send for PerfectByteHashMapCacheOwned
impl Sync for PerfectByteHashMapCacheOwned
impl Unpin for PerfectByteHashMapCacheOwned
impl UnwindSafe for PerfectByteHashMapCacheOwned
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