pub struct Mismatch<T> {
pub expected: T,
pub found: T,
}Expand description
Error indicating an expected value was not found.
Fields§
§expected: TValue expected.
found: TValue found.
Trait Implementations§
impl<T: Copy> Copy for Mismatch<T>
impl<T: Eq> Eq for Mismatch<T>
impl<T> StructuralPartialEq for Mismatch<T>
Auto Trait Implementations§
impl<T> Freeze for Mismatch<T>where
T: Freeze,
impl<T> RefUnwindSafe for Mismatch<T>where
T: RefUnwindSafe,
impl<T> Send for Mismatch<T>where
T: Send,
impl<T> Sync for Mismatch<T>where
T: Sync,
impl<T> Unpin for Mismatch<T>where
T: Unpin,
impl<T> UnwindSafe for Mismatch<T>where
T: UnwindSafe,
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