1 2 3 4 5 6 7
use crate::error::FsResult; use crate::imp::history::diff_and_cache::diff_value::{DiffValue}; pub(crate) trait DiffSrc<V : DiffValue> : Clone{ fn create_diff(&self, from: &Self) -> FsResult<V>; fn apply_diff(&mut self, diff : V) -> FsResult<()>; }