pub struct TimelineDiff {
pub common_ancestor: BranchInfo,
pub divergence: u64,
pub shared: ReplayPlan,
pub left: DiffSide,
pub right: DiffSide,
}Expand description
The result of Salamander::diff: where two timelines share history
and what each says after that — a position plus three replay plans.
Both timelines replay identically below divergence
by construction; no record comparison is involved (DIFF-1, DIFF-6).
Fields§
§common_ancestor: BranchInfoThe deepest branch node the two ancestries share.
divergence: u64Exclusive upper bound of the shared history.
Replay plan for the shared prefix [0, divergence), on the common
ancestor’s timeline — resolving it against either side yields the
same records.
left: DiffSideThe left timeline’s branch, until, and suffix plan.
right: DiffSideThe right timeline’s branch, until, and suffix plan.
Trait Implementations§
Source§impl Clone for TimelineDiff
impl Clone for TimelineDiff
Source§fn clone(&self) -> TimelineDiff
fn clone(&self) -> TimelineDiff
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimelineDiff
impl Debug for TimelineDiff
impl Eq for TimelineDiff
Source§impl PartialEq for TimelineDiff
impl PartialEq for TimelineDiff
impl StructuralPartialEq for TimelineDiff
Auto Trait Implementations§
impl Freeze for TimelineDiff
impl RefUnwindSafe for TimelineDiff
impl Send for TimelineDiff
impl Sync for TimelineDiff
impl Unpin for TimelineDiff
impl UnsafeUnpin for TimelineDiff
impl UnwindSafe for TimelineDiff
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more