fn delete<K: Hash>(&self, k: &K) -> Result<(), Self::Error> {
        let mut hasher = std::collections::hash_map::DefaultHasher::new();
        k.hash(&mut hasher);
        let k = hasher.finish();

        // We just delete both ...
        let mut values = self.values.write().unwrap();
        values.remove(&k);
        Ok(())
    }
/// Delete a value stored for ID `k`.
///
/// Returns an error if storing fails.
Delete a value stored for ID `k`.
Returns an error if storing fails.
Delete a value stored for ID ` k ` . Returns an error if storing fails .
fn delete<K: Hash>(&self, k: &K) -> Result<(), Self::Error> {
        let mut hasher = std::collections::hash_map::DefaultHasher::new();
        k.hash(&mut hasher);
        let k = hasher.finish();
        // We just delete both ...
        let mut values = self.values.write().unwrap();
        values.remove(&k);
        Ok(())
    }
fn delete < K : Hash > ( & self , k : & K ) -> Result < ( ) , Self :: Error > { let mut hasher = std :: collections :: hash_map :: DefaultHasher :: new ( ) ; k . hash ( & mut hasher ) ; let k = hasher . finish ( ) ; // We just delete both ... let mut values = self . values . write ( ) . unwrap ( ) ; values . remove ( & k ) ; Ok ( ( ) ) }
Delete a value stored for ID `k`.
Delete a value stored for ID ` k ` .
&self
k
&K
&self
k
&K