pub type VClock128<K> = VClock<K, u128>;Expand description
Vector clock using u128 counters.
This probably way too large for most practical usage,
it would take billions of billions of years to fill such
a clock on current hardware.
Napkin math: math.pow(2,128)/(1e9*24*3600*365) -> 1e22
§Examples
use vclock::VClock128;
// key type can be inferred
let mut c = VClock128::default();
c.incr(&"a");
c.incr(&"a");
c.incr(&"b");
assert_eq!(Some(1), c.get(&"a"));
assert_eq!(Some(0), c.get(&"b"));
assert_eq!(None, c.get(&"c"));Aliased Type§
pub struct VClock128<K> { /* private fields */ }