#[non_exhaustive]pub enum CompareResult {
Identical,
Leaf(DiffNode),
Expand(DiffNode, Vec<ItemPair>),
Skip,
}Expand description
Result of a comparator’s compare operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Identical
Items are identical — no diff node produced.
Leaf(DiffNode)
Terminal diff — no further expansion needed.
Expand(DiffNode, Vec<ItemPair>)
Container node with children to recursively process.
Skip
Comparator cannot handle this item after all — try the next one.
Trait Implementations§
Source§impl Debug for CompareResult
impl Debug for CompareResult
Source§impl<'de> Deserialize<'de> for CompareResult
impl<'de> Deserialize<'de> for CompareResult
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
Auto Trait Implementations§
impl Freeze for CompareResult
impl RefUnwindSafe for CompareResult
impl Send for CompareResult
impl Sync for CompareResult
impl Unpin for CompareResult
impl UnsafeUnpin for CompareResult
impl UnwindSafe for CompareResult
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