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, }