pub struct MapComparison<'a, S: Store> { /* private fields */ }Expand description
A version-pinned comparison between two snapshots of the same managed map.
Implementations§
Source§impl<'a, S: Store> MapComparison<'a, S>
impl<'a, S: Store> MapComparison<'a, S>
Sourcepub fn base(&self) -> &MapVersion
pub fn base(&self) -> &MapVersion
Baseline version.
Sourcepub fn target(&self) -> &MapVersion
pub fn target(&self) -> &MapVersion
Target version.
Sourcepub fn stream_diff<'s>(
&'s self,
) -> Result<Box<dyn Iterator<Item = Result<Diff, Error>> + 's>, Error>
pub fn stream_diff<'s>( &'s self, ) -> Result<Box<dyn Iterator<Item = Result<Diff, Error>> + 's>, Error>
Lazily stream logical differences.
Sourcepub fn diff_page(
&self,
cursor: &RangeCursor,
end: Option<&[u8]>,
limit: usize,
) -> Result<DiffPage, Error>
pub fn diff_page( &self, cursor: &RangeCursor, end: Option<&[u8]>, limit: usize, ) -> Result<DiffPage, Error>
Read one resumable key-cursor diff page.
Sourcepub fn structural_diff_page(
&self,
cursor: Option<&StructuralDiffCursor>,
limit: usize,
) -> Result<StructuralDiffPage, Error>
pub fn structural_diff_page( &self, cursor: Option<&StructuralDiffCursor>, limit: usize, ) -> Result<StructuralDiffPage, Error>
Read one structural diff page while preserving the CID frontier.
Sourcepub fn prove_diff_page(
&self,
cursor: &RangeCursor,
end: Option<&[u8]>,
limit: usize,
) -> Result<ProvedDiffPage, Error>
pub fn prove_diff_page( &self, cursor: &RangeCursor, end: Option<&[u8]>, limit: usize, ) -> Result<ProvedDiffPage, Error>
Read and prove one bounded diff page.
Sourcepub fn stats(&self) -> Result<StatsComparison, Error>
pub fn stats(&self) -> Result<StatsComparison, Error>
Compare shape, entry counts, and serialized size.
Sourcepub fn debug_view(&self) -> Result<TreeDebugComparison, Error>
pub fn debug_view(&self) -> Result<TreeDebugComparison, Error>
Compare shared and rewritten tree nodes.
Sourcepub fn publish_changed_spans<I>(&self, spans: I) -> Result<bool, Error>where
I: IntoIterator<Item = ChangedSpan>,
pub fn publish_changed_spans<I>(&self, spans: I) -> Result<bool, Error>where
I: IntoIterator<Item = ChangedSpan>,
Publish correctness-optional changed-span hints for this transition.
Sourcepub fn changed_spans(&self) -> Result<Option<ChangedSpanHint>, Error>
pub fn changed_spans(&self) -> Result<Option<ChangedSpanHint>, Error>
Load correctness-optional changed-span hints for this transition.
Auto Trait Implementations§
impl<'a, S> Freeze for MapComparison<'a, S>
impl<'a, S> RefUnwindSafe for MapComparison<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for MapComparison<'a, S>
impl<'a, S> Sync for MapComparison<'a, S>
impl<'a, S> Unpin for MapComparison<'a, S>
impl<'a, S> UnsafeUnpin for MapComparison<'a, S>
impl<'a, S> UnwindSafe for MapComparison<'a, S>where
S: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more