pub struct Mismatch {
pub declared: RawContentId,
pub actual: RawContentId,
}Expand description
Both sides of a hash comparison.
Boxed inside VerifyError rather than inlined: a RawContentId is ~96
bytes, so two of them in a variant made every Result from verify_unit
200 bytes wide — on the success path too. clippy::result_large_err is
right about that.
Fields§
§declared: RawContentIdWhat the unit claims.
actual: RawContentIdWhat recomputation actually produced.
Trait Implementations§
impl Copy for Mismatch
impl Eq for Mismatch
impl StructuralPartialEq for Mismatch
Auto Trait Implementations§
impl Freeze for Mismatch
impl RefUnwindSafe for Mismatch
impl Send for Mismatch
impl Sync for Mismatch
impl Unpin for Mismatch
impl UnsafeUnpin for Mismatch
impl UnwindSafe for Mismatch
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