cumulo-dipa 0.1.2

dipa makes it easy to efficiently delta encode large Rust data structures.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{CreatedDelta, Diffable, Patchable};

impl<'s, 'e> Diffable<'s, 'e, ()> for () {
    type Delta = ();
    type DeltaOwned = ();

    fn create_delta_towards(&self, _end_state: &()) -> CreatedDelta<Self::Delta> {
        CreatedDelta {
            delta: (),
            did_change: false,
        }
    }
}

impl Patchable<()> for () {
    fn apply_patch(&mut self, _patch: ()) {}
}