pub struct PreHashed<I, H = u64> { /* private fields */ }Expand description
A wrapper type that hashes some inner on creation, implementing Hash
by simply returning the pre-computed hash.
Implementations§
Trait Implementations§
impl<I: Copy, H: Copy> Copy for PreHashed<I, H>
impl<I: Eq, H> Eq for PreHashed<I, H>
Auto Trait Implementations§
impl<I, H> Freeze for PreHashed<I, H>
impl<I, H> RefUnwindSafe for PreHashed<I, H>where
    H: RefUnwindSafe,
    I: RefUnwindSafe,
impl<I, H> Send for PreHashed<I, H>
impl<I, H> Sync for PreHashed<I, H>
impl<I, H> Unpin for PreHashed<I, H>
impl<I, H> UnwindSafe for PreHashed<I, H>where
    H: UnwindSafe,
    I: 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