#[non_exhaustive]pub struct Difference {
pub rules: Option<(usize, usize)>,
pub path: Vec<PathStep>,
pub kind: DifferenceKind,
}Expand description
The first behavior-relevant difference difference found.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rules: Option<(usize, usize)>The compared rules’ positions in each program’s rules, or None
for differences above the rule level.
path: Vec<PathStep>The path to the differing element inside the compared rules; empty for rule-level differences (the event, or an element count).
kind: DifferenceKindWhat differs at that location.
Trait Implementations§
Source§impl Clone for Difference
impl Clone for Difference
Source§impl Debug for Difference
impl Debug for Difference
Source§impl PartialEq for Difference
impl PartialEq for Difference
impl StructuralPartialEq for Difference
Auto Trait Implementations§
impl Freeze for Difference
impl RefUnwindSafe for Difference
impl Send for Difference
impl Sync for Difference
impl Unpin for Difference
impl UnsafeUnpin for Difference
impl UnwindSafe for Difference
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