pub trait ComparableAssertion<S, R> {
// Required methods
fn is_at_least<B: Borrow<S>>(&self, expected: B) -> R;
fn is_at_most<B: Borrow<S>>(&self, expected: B) -> R;
fn is_greater_than<B: Borrow<S>>(&self, expected: B) -> R;
fn is_less_than<B: Borrow<S>>(&self, expected: B) -> R;
}Expand description
Trait for comparison assertions.
Required Methods§
Sourcefn is_at_least<B: Borrow<S>>(&self, expected: B) -> R
fn is_at_least<B: Borrow<S>>(&self, expected: B) -> R
Checks that the subject is greater than or equal to expected.
Sourcefn is_at_most<B: Borrow<S>>(&self, expected: B) -> R
fn is_at_most<B: Borrow<S>>(&self, expected: B) -> R
Checks that the subject is less than or equal to expected.
Sourcefn is_greater_than<B: Borrow<S>>(&self, expected: B) -> R
fn is_greater_than<B: Borrow<S>>(&self, expected: B) -> R
Checks that the subject is greater than expected.
Sourcefn is_less_than<B: Borrow<S>>(&self, expected: B) -> R
fn is_less_than<B: Borrow<S>>(&self, expected: B) -> R
Checks that the subject is less than expected.
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.