txmap 3.0.1

A concurrent transactional hash map for Rust with fine-grained locking, internal mutability and composable transactions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::new_types::{HashCode, ShardIndex};
use std::hash::Hash;

#[derive(Debug, Hash, PartialEq, Eq)]
pub struct TxKey<K>
where
    K: Hash + Eq,
{
    pub hash_code: HashCode,
    pub shard_index: ShardIndex,
    pub key: K,
}