pub struct ExpectedComparisonError<T> {
pub comparison: Comparison,
pub comparator: T,
pub actual: T,
}Fields§
§comparison: Comparison§comparator: T§actual: TTrait Implementations§
Source§impl<T: Clone> Clone for ExpectedComparisonError<T>
impl<T: Clone> Clone for ExpectedComparisonError<T>
Source§fn clone(&self) -> ExpectedComparisonError<T>
fn clone(&self) -> ExpectedComparisonError<T>
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<T: Debug> Debug for ExpectedComparisonError<T>
impl<T: Debug> Debug for ExpectedComparisonError<T>
Source§impl<'de, T> Deserialize<'de> for ExpectedComparisonError<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ExpectedComparisonError<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: Debug> Display for ExpectedComparisonError<T>
impl<T: Debug> Display for ExpectedComparisonError<T>
Source§impl<T: Debug> Error for ExpectedComparisonError<T>
impl<T: Debug> Error for ExpectedComparisonError<T>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ExpectedComparisonError<usize>> for ExpectedLenError
impl From<ExpectedComparisonError<usize>> for ExpectedLenError
Source§fn from(_: ExpectedComparisonError<usize>) -> Self
fn from(_: ExpectedComparisonError<usize>) -> Self
Converts to this type from the input type.
Source§impl<T> JsonSchema for ExpectedComparisonError<T>where
T: JsonSchema,
impl<T> JsonSchema for ExpectedComparisonError<T>where
T: JsonSchema,
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl<T: PartialEq> PartialEq for ExpectedComparisonError<T>
impl<T: PartialEq> PartialEq for ExpectedComparisonError<T>
Source§impl<T> Serialize for ExpectedComparisonError<T>where
T: Serialize,
impl<T> Serialize for ExpectedComparisonError<T>where
T: Serialize,
impl<T: Copy> Copy for ExpectedComparisonError<T>
impl<T: Eq> Eq for ExpectedComparisonError<T>
impl<T> StructuralPartialEq for ExpectedComparisonError<T>
Auto Trait Implementations§
impl<T> Freeze for ExpectedComparisonError<T>where
T: Freeze,
impl<T> RefUnwindSafe for ExpectedComparisonError<T>where
T: RefUnwindSafe,
impl<T> Send for ExpectedComparisonError<T>where
T: Send,
impl<T> Sync for ExpectedComparisonError<T>where
T: Sync,
impl<T> Unpin for ExpectedComparisonError<T>where
T: Unpin,
impl<T> UnwindSafe for ExpectedComparisonError<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