PartialOrdAssertions

Trait PartialOrdAssertions 

Source
pub trait PartialOrdAssertions<T> {
    // Required methods
    fn is_less_than<E>(self, expected: impl Borrow<E>) -> Self
       where E: Debug,
             T: PartialOrd<E>;
    fn is_greater_than<E>(self, expected: impl Borrow<E>) -> Self
       where E: Debug,
             T: PartialOrd<E>;
    fn is_less_or_equal_to<E>(self, expected: impl Borrow<E>) -> Self
       where E: Debug,
             T: PartialOrd<E>;
    fn is_greater_or_equal_to<E>(self, expected: impl Borrow<E>) -> Self
       where E: Debug,
             T: PartialOrd<E>;
}
Expand description

Assertions for comparable values.

Required Methods§

Source

fn is_less_than<E>(self, expected: impl Borrow<E>) -> Self
where E: Debug, T: PartialOrd<E>,

Source

fn is_greater_than<E>(self, expected: impl Borrow<E>) -> Self
where E: Debug, T: PartialOrd<E>,

Source

fn is_less_or_equal_to<E>(self, expected: impl Borrow<E>) -> Self
where E: Debug, T: PartialOrd<E>,

Source

fn is_greater_or_equal_to<E>(self, expected: impl Borrow<E>) -> Self
where E: Debug, T: PartialOrd<E>,

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§

Source§

impl<T: Debug, M: Mode> PartialOrdAssertions<T> for AssertThat<'_, T, M>