pub enum Discrepancy<'expectation, 'actual> {
MissingRegion {
region: &'expectation Region,
},
Changed {
expect: &'expectation [u8],
actual: &'actual [u8],
region: &'expectation Region,
},
}Expand description
Embodies a difference of the expectation of the byte buffer and what is actually there
Variants§
MissingRegion
The given buffer does not have enough length to be tested
Changed
The given buffer did not have the expected byte values
Trait Implementations§
Source§impl<'expectation, 'actual> Debug for Discrepancy<'expectation, 'actual>
impl<'expectation, 'actual> Debug for Discrepancy<'expectation, 'actual>
Source§impl<'e, 'a> Display for Discrepancy<'e, 'a>
impl<'e, 'a> Display for Discrepancy<'e, 'a>
Source§impl<'expectation, 'actual> PartialEq for Discrepancy<'expectation, 'actual>
impl<'expectation, 'actual> PartialEq for Discrepancy<'expectation, 'actual>
Source§fn eq(&self, other: &Discrepancy<'expectation, 'actual>) -> bool
fn eq(&self, other: &Discrepancy<'expectation, 'actual>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'expectation, 'actual> Eq for Discrepancy<'expectation, 'actual>
impl<'expectation, 'actual> StructuralPartialEq for Discrepancy<'expectation, 'actual>
Auto Trait Implementations§
impl<'expectation, 'actual> Freeze for Discrepancy<'expectation, 'actual>
impl<'expectation, 'actual> RefUnwindSafe for Discrepancy<'expectation, 'actual>
impl<'expectation, 'actual> Send for Discrepancy<'expectation, 'actual>
impl<'expectation, 'actual> Sync for Discrepancy<'expectation, 'actual>
impl<'expectation, 'actual> Unpin for Discrepancy<'expectation, 'actual>
impl<'expectation, 'actual> UnwindSafe for Discrepancy<'expectation, 'actual>
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