txmap 2.1.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(crate) hash_code: HashCode,
    pub(crate) shard_index: ShardIndex,
    pub(crate) key: K,
}