pub enum StructuralDiffMarker {
Compare {
base_cid: Cid,
other_cid: Cid,
span_end: Option<Vec<u8>>,
},
Added {
cid: Cid,
},
Removed {
cid: Cid,
},
}Expand description
Public marker for one suspended structural diff frame.
Variants§
Compare
Compare two subtrees with the same structural span.
Added
Emit all entries from a subtree added on the other side.
Removed
Emit all entries from a subtree removed from the base side.
Trait Implementations§
Source§impl Clone for StructuralDiffMarker
impl Clone for StructuralDiffMarker
Source§fn clone(&self) -> StructuralDiffMarker
fn clone(&self) -> StructuralDiffMarker
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 StructuralDiffMarker
impl Debug for StructuralDiffMarker
Source§impl<'de> Deserialize<'de> for StructuralDiffMarker
impl<'de> Deserialize<'de> for StructuralDiffMarker
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StructuralDiffMarker
Source§impl PartialEq for StructuralDiffMarker
impl PartialEq for StructuralDiffMarker
Source§impl Serialize for StructuralDiffMarker
impl Serialize for StructuralDiffMarker
impl StructuralPartialEq for StructuralDiffMarker
Auto Trait Implementations§
impl Freeze for StructuralDiffMarker
impl RefUnwindSafe for StructuralDiffMarker
impl Send for StructuralDiffMarker
impl Sync for StructuralDiffMarker
impl Unpin for StructuralDiffMarker
impl UnsafeUnpin for StructuralDiffMarker
impl UnwindSafe for StructuralDiffMarker
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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