Skip to main content

NodeId

Type Alias NodeId 

Source
pub type NodeId = u64;
Expand description

Compact node identifier for CRDT replicas.

Uses u64 instead of String to avoid heap allocations on every operation — critical for embedded/IoT targets where alloc is expensive.

§Example

use crdt_kit::prelude::*;

let mut c = GCounter::new(1); // NodeId = 1
c.increment();
assert_eq!(c.value(), 1);