pub trait AssertEq<Rhs = Self> {
// Required methods
fn eq(a: Self, b: Rhs) -> Result<(), AssertionError>;
fn eq_within_tols(
tols: &Assert,
a: Self,
b: Rhs,
) -> Result<(), AssertionError>;
}Expand description
Equality assertions, overloaded across owned and borrowed operands.
Required Methods§
fn eq(a: Self, b: Rhs) -> Result<(), AssertionError>
fn eq_within_tols(tols: &Assert, a: Self, b: Rhs) -> Result<(), AssertionError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.