libvctrl_handler 5.2.0

Fundamental contracts for building a version control system – no implementations, only traits and types
Documentation
1
2
3
4
5
6
7
8
use crate::errors::VctrlError;
use crate::types::TreeDelta;

pub trait TreeDiffer: Send + Sync {
    type TreeId: Send + Sync;

    fn diff_trees(&self, old: &Self::TreeId, new: &Self::TreeId) -> Result<TreeDelta, VctrlError>;
}