pub struct ReceivedExpectedError<Received, Expected> {
pub received: Received,
pub expected: Expected,
}Expand description
Error indicating a mismatch between received and expected values
Fields§
§received: Received§expected: ExpectedTrait Implementations§
Source§impl<Received: Clone, Expected: Clone> Clone for ReceivedExpectedError<Received, Expected>
impl<Received: Clone, Expected: Clone> Clone for ReceivedExpectedError<Received, Expected>
Source§fn clone(&self) -> ReceivedExpectedError<Received, Expected>
fn clone(&self) -> ReceivedExpectedError<Received, Expected>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Received, Expected> From<(Received, Expected)> for ReceivedExpectedError<Received, Expected>
impl<Received, Expected> From<(Received, Expected)> for ReceivedExpectedError<Received, Expected>
Source§fn from((received, expected): (Received, Expected)) -> Self
fn from((received, expected): (Received, Expected)) -> Self
Converts to this type from the input type.
Source§impl<Received: Ord, Expected: Ord> Ord for ReceivedExpectedError<Received, Expected>
impl<Received: Ord, Expected: Ord> Ord for ReceivedExpectedError<Received, Expected>
Source§fn cmp(&self, other: &ReceivedExpectedError<Received, Expected>) -> Ordering
fn cmp(&self, other: &ReceivedExpectedError<Received, Expected>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<Received: PartialEq, Expected: PartialEq> PartialEq for ReceivedExpectedError<Received, Expected>
impl<Received: PartialEq, Expected: PartialEq> PartialEq for ReceivedExpectedError<Received, Expected>
Source§fn eq(&self, other: &ReceivedExpectedError<Received, Expected>) -> bool
fn eq(&self, other: &ReceivedExpectedError<Received, Expected>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<Received: PartialOrd, Expected: PartialOrd> PartialOrd for ReceivedExpectedError<Received, Expected>
impl<Received: PartialOrd, Expected: PartialOrd> PartialOrd for ReceivedExpectedError<Received, Expected>
impl<Received: Eq, Expected: Eq> Eq for ReceivedExpectedError<Received, Expected>
impl<Received, Expected> StructuralPartialEq for ReceivedExpectedError<Received, Expected>
Auto Trait Implementations§
impl<Received, Expected> Freeze for ReceivedExpectedError<Received, Expected>
impl<Received, Expected> RefUnwindSafe for ReceivedExpectedError<Received, Expected>where
Received: RefUnwindSafe,
Expected: RefUnwindSafe,
impl<Received, Expected> Send for ReceivedExpectedError<Received, Expected>
impl<Received, Expected> Sync for ReceivedExpectedError<Received, Expected>
impl<Received, Expected> Unpin for ReceivedExpectedError<Received, Expected>
impl<Received, Expected> UnsafeUnpin for ReceivedExpectedError<Received, Expected>where
Received: UnsafeUnpin,
Expected: UnsafeUnpin,
impl<Received, Expected> UnwindSafe for ReceivedExpectedError<Received, Expected>where
Received: UnwindSafe,
Expected: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more