Trait txn_core::sync::CmComparable
source · pub trait CmComparable: Cm {
// Required methods
fn mark_read_comparable<Q>(&mut self, key: &Q)
where Self::Key: Borrow<Q>,
Q: Ord + ?Sized;
fn mark_conflict_comparable<Q>(&mut self, key: &Q)
where Self::Key: Borrow<Q>,
Q: Ord + ?Sized;
}
Expand description
An optimized version of the Cm
trait that if your conflict manager is depend on the order.
Required Methods§
sourcefn mark_read_comparable<Q>(&mut self, key: &Q)
fn mark_read_comparable<Q>(&mut self, key: &Q)
Optimized version of [mark_read
] that accepts borrowed keys. Optional to implement.
Object Safety§
This trait is not object safe.