pub trait ExpectComparison:
PartialOrd
+ PartialEq
+ Sized {
// Required methods
fn expect_lt(
self,
other: Self,
) -> Result<Self, ExpectedComparisonError<Self>>;
fn expect_lte(
self,
other: Self,
) -> Result<Self, ExpectedComparisonError<Self>>;
fn expect_eq(
self,
other: Self,
) -> Result<Self, ExpectedComparisonError<Self>>;
fn expect_ne(
self,
other: Self,
) -> Result<Self, ExpectedComparisonError<Self>>;
fn expect_gte(
self,
other: Self,
) -> Result<Self, ExpectedComparisonError<Self>>;
fn expect_gt(
self,
other: Self,
) -> Result<Self, ExpectedComparisonError<Self>>;
}Required Methods§
fn expect_lt(self, other: Self) -> Result<Self, ExpectedComparisonError<Self>>
fn expect_lte(self, other: Self) -> Result<Self, ExpectedComparisonError<Self>>
fn expect_eq(self, other: Self) -> Result<Self, ExpectedComparisonError<Self>>
fn expect_ne(self, other: Self) -> Result<Self, ExpectedComparisonError<Self>>
fn expect_gte(self, other: Self) -> Result<Self, ExpectedComparisonError<Self>>
fn expect_gt(self, other: Self) -> Result<Self, ExpectedComparisonError<Self>>
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.