fly 0.2.0

Convergent Replicated Data Types in Rust
Documentation
1
2
3
4
5
6
7
8
9
pub trait Counter<N> {
    fn incr(&mut self, node: N, delta: u64);
    fn decr(&mut self, node: N, delta: u64) {
        panic!("The decrement operation is not supported
                on the current Counter.");
    }

    fn value(&self) -> u64;
}