Struct loro_internal::version::VersionVectorDiff
source · pub struct VersionVectorDiff {
pub left: IdSpanVector,
pub right: IdSpanVector,
}
Fields§
§left: IdSpanVector
need to add these spans to move from right to left
right: IdSpanVector
need to add these spans to move from left to right
Implementations§
source§impl VersionVectorDiff
impl VersionVectorDiff
pub fn merge_left(&mut self, span: IdSpan)
pub fn merge_right(&mut self, span: IdSpan)
pub fn subtract_start_left(&mut self, span: IdSpan)
pub fn subtract_start_right(&mut self, span: IdSpan)
pub fn get_id_spans_left(&self) -> impl Iterator<Item = IdSpan> + '_
pub fn get_id_spans_right(&self) -> impl Iterator<Item = IdSpan> + '_
Trait Implementations§
source§impl Debug for VersionVectorDiff
impl Debug for VersionVectorDiff
source§impl Default for VersionVectorDiff
impl Default for VersionVectorDiff
source§fn default() -> VersionVectorDiff
fn default() -> VersionVectorDiff
Returns the “default value” for a type. Read more
source§impl PartialEq for VersionVectorDiff
impl PartialEq for VersionVectorDiff
source§fn eq(&self, other: &VersionVectorDiff) -> bool
fn eq(&self, other: &VersionVectorDiff) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VersionVectorDiff
impl StructuralPartialEq for VersionVectorDiff
Auto Trait Implementations§
impl Freeze for VersionVectorDiff
impl RefUnwindSafe for VersionVectorDiff
impl Send for VersionVectorDiff
impl Sync for VersionVectorDiff
impl Unpin for VersionVectorDiff
impl UnwindSafe for VersionVectorDiff
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