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>; }