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§
fn is_less_than<E>(self, expected: impl Borrow<E>) -> Selfwhere
E: Debug,
T: PartialOrd<E>,
fn is_greater_than<E>(self, expected: impl Borrow<E>) -> Selfwhere
E: Debug,
T: PartialOrd<E>,
fn is_less_or_equal_to<E>(self, expected: impl Borrow<E>) -> Selfwhere
E: Debug,
T: PartialOrd<E>,
fn is_greater_or_equal_to<E>(self, expected: impl Borrow<E>) -> Selfwhere
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.