pub struct ChainDiff {
pub common_length: usize,
pub a_extra: usize,
pub b_extra: usize,
pub diverges_at: Option<usize>,
}Expand description
The result of comparing two chains with Chain::diff.
Fields§
§common_length: usizeHow many links match from the start.
a_extra: usizeLinks only in chain A (after the common prefix).
b_extra: usizeLinks only in chain B (after the common prefix).
diverges_at: Option<usize>1-based index where they diverge. None means one is a prefix of the other.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChainDiff
impl<'de> Deserialize<'de> for ChainDiff
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 StructuralPartialEq for ChainDiff
Auto Trait Implementations§
impl Freeze for ChainDiff
impl RefUnwindSafe for ChainDiff
impl Send for ChainDiff
impl Sync for ChainDiff
impl Unpin for ChainDiff
impl UnsafeUnpin for ChainDiff
impl UnwindSafe for ChainDiff
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