Struct wgpu_core::hash_utils::PreHashedKey
source · pub struct PreHashedKey<K>(u64, PhantomData<fn() -> K>);
Expand description
A pre-hashed key using FxHash which allows the hashing operation to be disconnected from the storage in the map.
Tuple Fields§
§0: u64
§1: PhantomData<fn() -> K>
Implementations§
Trait Implementations§
source§impl<K> Clone for PreHashedKey<K>
impl<K> Clone for PreHashedKey<K>
source§impl<K> Debug for PreHashedKey<K>
impl<K> Debug for PreHashedKey<K>
source§impl<K> Hash for PreHashedKey<K>
impl<K> Hash for PreHashedKey<K>
source§impl<K> PartialEq for PreHashedKey<K>
impl<K> PartialEq for PreHashedKey<K>
impl<K> Copy for PreHashedKey<K>
impl<K> Eq for PreHashedKey<K>
Auto Trait Implementations§
impl<K> Freeze for PreHashedKey<K>
impl<K> RefUnwindSafe for PreHashedKey<K>
impl<K> Send for PreHashedKey<K>
impl<K> Sync for PreHashedKey<K>
impl<K> Unpin for PreHashedKey<K>
impl<K> UnwindSafe for PreHashedKey<K>
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.