pub struct VersionVector { /* private fields */ }Expand description
A canonical summary of the highest observed commit sequence for each author.
Implementations§
Source§impl VersionVector
impl VersionVector
Sourcepub fn covers(&self, dot: &Dot) -> bool
pub fn covers(&self, dot: &Dot) -> bool
Returns whether this history includes the commit containing dot.
Sourcepub fn relation(&self, other: &Self) -> CausalRelation
pub fn relation(&self, other: &Self) -> CausalRelation
Compares this history with another using vector-clock partial ordering.
Sourcepub fn iter(&self) -> impl ExactSizeIterator<Item = (&AuthorId, &u64)>
pub fn iter(&self) -> impl ExactSizeIterator<Item = (&AuthorId, &u64)>
Iterates over authors and sequences in canonical author order.
Trait Implementations§
Source§impl Clone for VersionVector
impl Clone for VersionVector
Source§fn clone(&self) -> VersionVector
fn clone(&self) -> VersionVector
Returns a duplicate of the value. Read more
1.0.0 · 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 VersionVector
impl Debug for VersionVector
Source§impl<'bytes, Ctx> Decode<'bytes, Ctx> for VersionVector
impl<'bytes, Ctx> Decode<'bytes, Ctx> for VersionVector
Source§impl Default for VersionVector
impl Default for VersionVector
Source§fn default() -> VersionVector
fn default() -> VersionVector
Returns the “default value” for a type. Read more
Source§impl<Ctx> Encode<Ctx> for VersionVector
impl<Ctx> Encode<Ctx> for VersionVector
Source§impl PartialEq for VersionVector
impl PartialEq for VersionVector
impl Eq for VersionVector
impl StructuralPartialEq for VersionVector
Auto Trait Implementations§
impl Freeze for VersionVector
impl RefUnwindSafe for VersionVector
impl Send for VersionVector
impl Sync for VersionVector
impl Unpin for VersionVector
impl UnwindSafe for VersionVector
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> RecordKey for T
impl<T> RecordKey for T
Source§fn encode_key(&self) -> Result<Vec<u8>, RecordError>
fn encode_key(&self) -> Result<Vec<u8>, RecordError>
Encodes this key into its unique durable representation.
Source§fn decode_key(bytes: &[u8]) -> Result<T, RecordError>
fn decode_key(bytes: &[u8]) -> Result<T, RecordError>
Strictly decodes a key from its unique durable representation.