txmap 1.1.0

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
13
14
use crate::{locks::lock_policy::LockPolicy, new_types::BitMask, shard::Shard};
use intmap::IntMap;

pub trait FinisherTrait<K, V> {
    type Output;

    fn guards_bitmask(&self) -> BitMask;
    fn to_result<L>(
        &self,
        mutex_guards: &IntMap<u8, L::WriteGuard<'_, Shard<K, V>>>,
    ) -> Self::Output
    where
        L: LockPolicy;
}