pub struct HashFourWay<H = DefaultHasher> { /* private fields */ }Expand description
Four-way set 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 HashFourWay<H>
impl<H: Clone> Clone for HashFourWay<H>
Source§fn clone(&self) -> HashFourWay<H>
fn clone(&self) -> HashFourWay<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 HashFourWay<H>
impl<H: Debug> Debug for HashFourWay<H>
Source§impl<H: Default> Default for HashFourWay<H>
impl<H: Default> Default for HashFourWay<H>
Source§fn default() -> HashFourWay<H>
fn default() -> HashFourWay<H>
Returns the “default value” for a type. Read more
Source§impl<H: Hash> Hash for HashFourWay<H>
impl<H: Hash> Hash for HashFourWay<H>
Source§impl<T, C, H> Indices<T, C> for HashFourWay<H>
impl<T, C, H> Indices<T, C> for HashFourWay<H>
Source§impl<H: Ord> Ord for HashFourWay<H>
impl<H: Ord> Ord for HashFourWay<H>
Source§fn cmp(&self, other: &HashFourWay<H>) -> Ordering
fn cmp(&self, other: &HashFourWay<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 HashFourWay<H>
impl<H: PartialEq> PartialEq for HashFourWay<H>
Source§impl<H: PartialOrd> PartialOrd for HashFourWay<H>
impl<H: PartialOrd> PartialOrd for HashFourWay<H>
impl<H: Eq> Eq for HashFourWay<H>
impl<H> StructuralPartialEq for HashFourWay<H>
Auto Trait Implementations§
impl<H> Freeze for HashFourWay<H>
impl<H> RefUnwindSafe for HashFourWay<H>where
H: RefUnwindSafe,
impl<H> Send for HashFourWay<H>where
H: Send,
impl<H> Sync for HashFourWay<H>where
H: Sync,
impl<H> Unpin for HashFourWay<H>where
H: Unpin,
impl<H> UnwindSafe for HashFourWay<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