txmap 2.2.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
use crate::{lock_guards::LockGuards, lock_policies::lock_policy::LockPolicy, new_types::BitMask};
use std::hash::Hash;

pub(crate) trait OpTrait<K, V, L, STATE>
where
    K: Hash + Eq,
    L: LockPolicy,
{
    fn read_write_bitmasks(&self) -> (BitMask, BitMask);
    fn apply(&self, lock_guards: &mut LockGuards<'_, K, V, L>, state: &mut STATE);
}