pub struct PointerDirectMapped;Expand description
Direct-mapped (i.e. one-way associative) caching based on the key’s pointer value.
See the Indices trait’s documentation for more on associativity.
Trait Implementations§
Source§impl Clone for PointerDirectMapped
impl Clone for PointerDirectMapped
Source§fn clone(&self) -> PointerDirectMapped
fn clone(&self) -> PointerDirectMapped
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 Debug for PointerDirectMapped
impl Debug for PointerDirectMapped
Source§impl Default for PointerDirectMapped
impl Default for PointerDirectMapped
Source§fn default() -> PointerDirectMapped
fn default() -> PointerDirectMapped
Returns the “default value” for a type. Read more
Source§impl Hash for PointerDirectMapped
impl Hash for PointerDirectMapped
Source§impl<T, C> Indices<*const T, C> for PointerDirectMappedwhere
C: Capacity,
impl<T, C> Indices<*const T, C> for PointerDirectMappedwhere
C: Capacity,
Source§impl<T, C> Indices<*mut T, C> for PointerDirectMappedwhere
C: Capacity,
impl<T, C> Indices<*mut T, C> for PointerDirectMappedwhere
C: Capacity,
Source§impl Ord for PointerDirectMapped
impl Ord for PointerDirectMapped
Source§fn cmp(&self, other: &PointerDirectMapped) -> Ordering
fn cmp(&self, other: &PointerDirectMapped) -> 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 PartialEq for PointerDirectMapped
impl PartialEq for PointerDirectMapped
Source§impl PartialOrd for PointerDirectMapped
impl PartialOrd for PointerDirectMapped
impl Eq for PointerDirectMapped
impl StructuralPartialEq for PointerDirectMapped
Auto Trait Implementations§
impl Freeze for PointerDirectMapped
impl RefUnwindSafe for PointerDirectMapped
impl Send for PointerDirectMapped
impl Sync for PointerDirectMapped
impl Unpin for PointerDirectMapped
impl UnwindSafe for PointerDirectMapped
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