ExpectComparison

Trait ExpectComparison 

Source
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§

Source

fn expect_lt(self, other: Self) -> Result<Self, ExpectedComparisonError<Self>>

Source

fn expect_lte(self, other: Self) -> Result<Self, ExpectedComparisonError<Self>>

Source

fn expect_eq(self, other: Self) -> Result<Self, ExpectedComparisonError<Self>>

Source

fn expect_ne(self, other: Self) -> Result<Self, ExpectedComparisonError<Self>>

Source

fn expect_gte(self, other: Self) -> Result<Self, ExpectedComparisonError<Self>>

Source

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.

Implementors§