pub struct History<V> { /* private fields */ }Expand description
A finite, causally closed set of writes satisfying the merge proof’s four
assumptions. It is also an in-memory oracle for an applied set.
Test support: requires test-utils outside this crate’s unit tests.
Implementations§
Source§impl<V> History<V>
impl<V> History<V>
Sourcepub fn new(
writes: impl IntoIterator<Item = Write<V>>,
) -> Result<Self, MergeError>
pub fn new( writes: impl IntoIterator<Item = Write<V>>, ) -> Result<Self, MergeError>
Validate a set without imposing an arrival order. Check timestamp uniqueness, timestamp causality, generation witnesses and parity.
Trait Implementations§
Auto Trait Implementations§
impl<V> Freeze for History<V>
impl<V> RefUnwindSafe for History<V>where
V: RefUnwindSafe,
impl<V> Send for History<V>where
V: Send,
impl<V> Sync for History<V>where
V: Sync,
impl<V> Unpin for History<V>
impl<V> UnsafeUnpin for History<V>
impl<V> UnwindSafe for History<V>where
V: RefUnwindSafe,
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