pub type VClock16<K> = VClock<K, u16>;Expand description
Vector clock using u16 counters.
About capacity: considering a computer which
would increase the clock for a given key,
at a constant rate of 1000 updates/sec,
the clock would be filled after 1 minute.
Keep this is mind when using this type.
Napking math: pow(2,16)/(1000*60).
§Examples
use vclock::VClock16;
// key type can be inferred
let mut c = VClock16::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 VClock16<K> { /* private fields */ }