pub struct HashDirectMapped<H = DefaultHasher> { /* private fields */ }Expand description
Direct-mapped (i.e. one-way associative) caching based on the key’s
Hash implementation.
See the Indices trait’s documentation for more on associativity.
Trait Implementations§
Source§impl<H: Clone> Clone for HashDirectMapped<H>
impl<H: Clone> Clone for HashDirectMapped<H>
Source§fn clone(&self) -> HashDirectMapped<H>
fn clone(&self) -> HashDirectMapped<H>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<H: Debug> Debug for HashDirectMapped<H>
impl<H: Debug> Debug for HashDirectMapped<H>
Source§impl<H: Default> Default for HashDirectMapped<H>
impl<H: Default> Default for HashDirectMapped<H>
Source§fn default() -> HashDirectMapped<H>
fn default() -> HashDirectMapped<H>
Returns the “default value” for a type. Read more
Source§impl<H: Hash> Hash for HashDirectMapped<H>
impl<H: Hash> Hash for HashDirectMapped<H>
Source§impl<T, C, H> Indices<T, C> for HashDirectMapped<H>
impl<T, C, H> Indices<T, C> for HashDirectMapped<H>
Source§impl<H: Ord> Ord for HashDirectMapped<H>
impl<H: Ord> Ord for HashDirectMapped<H>
Source§fn cmp(&self, other: &HashDirectMapped<H>) -> Ordering
fn cmp(&self, other: &HashDirectMapped<H>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<H: PartialEq> PartialEq for HashDirectMapped<H>
impl<H: PartialEq> PartialEq for HashDirectMapped<H>
Source§impl<H: PartialOrd> PartialOrd for HashDirectMapped<H>
impl<H: PartialOrd> PartialOrd for HashDirectMapped<H>
impl<H: Eq> Eq for HashDirectMapped<H>
impl<H> StructuralPartialEq for HashDirectMapped<H>
Auto Trait Implementations§
impl<H> Freeze for HashDirectMapped<H>
impl<H> RefUnwindSafe for HashDirectMapped<H>where
H: RefUnwindSafe,
impl<H> Send for HashDirectMapped<H>where
H: Send,
impl<H> Sync for HashDirectMapped<H>where
H: Sync,
impl<H> Unpin for HashDirectMapped<H>where
H: Unpin,
impl<H> UnwindSafe for HashDirectMapped<H>where
H: UnwindSafe,
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