pub enum ArrayDifference {
PairsOnly {
different_pairs: DumbMap<usize, Difference>,
},
Shorter {
different_pairs: Option<DumbMap<usize, Difference>>,
missing_elements: Vec<Value>,
},
Longer {
different_pairs: Option<DumbMap<usize, Difference>>,
extra_length: usize,
},
}Variants§
PairsOnly
source and target are the same length, but some values of the same indices are different
Fields
§
different_pairs: DumbMap<usize, Difference>differing pairs that appear in the overlapping indices of source and target
Shorter
source is shorter than target
Fields
§
different_pairs: Option<DumbMap<usize, Difference>>differing pairs that appear in the overlapping indices of source and target
Longer
source is longer than target
Trait Implementations§
Source§impl Debug for ArrayDifference
impl Debug for ArrayDifference
Auto Trait Implementations§
impl Freeze for ArrayDifference
impl RefUnwindSafe for ArrayDifference
impl Send for ArrayDifference
impl Sync for ArrayDifference
impl Unpin for ArrayDifference
impl UnwindSafe for ArrayDifference
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