pub struct TestExpectation<T> {
pub expected: T,
pub actual: T,
}Expand description
A simple expected-vs-actual pair.
Fields§
§expected: T§actual: TImplementations§
Trait Implementations§
Source§impl<T: Clone> Clone for TestExpectation<T>
impl<T: Clone> Clone for TestExpectation<T>
Source§fn clone(&self) -> TestExpectation<T>
fn clone(&self) -> TestExpectation<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for TestExpectation<T>
impl<T: Debug> Debug for TestExpectation<T>
Source§impl<T: Hash> Hash for TestExpectation<T>
impl<T: Hash> Hash for TestExpectation<T>
Source§impl<T: PartialEq> PartialEq for TestExpectation<T>
impl<T: PartialEq> PartialEq for TestExpectation<T>
Source§fn eq(&self, other: &TestExpectation<T>) -> bool
fn eq(&self, other: &TestExpectation<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T: Eq> Eq for TestExpectation<T>
impl<T> StructuralPartialEq for TestExpectation<T>
Auto Trait Implementations§
impl<T> Freeze for TestExpectation<T>where
T: Freeze,
impl<T> RefUnwindSafe for TestExpectation<T>where
T: RefUnwindSafe,
impl<T> Send for TestExpectation<T>where
T: Send,
impl<T> Sync for TestExpectation<T>where
T: Sync,
impl<T> Unpin for TestExpectation<T>where
T: Unpin,
impl<T> UnsafeUnpin for TestExpectation<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TestExpectation<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