Trait Pred2
pets
pub trait Pred2<T: ?Sized>: Default + Debug + Copy { fn accept(a: &T, b: &T) -> bool; fn accept_tup((a, b): (&T, &T)) -> bool { ... } }
A predicate over two variables.
fn accept(a: &T, b: &T) -> bool
Attempts to accept a pair (a, b).
(a, b)
fn accept_tup((a, b): (&T, &T)) -> bool
impl<T: PartialOrd + ?Sized> Pred2<T> for Increasing
impl<T: PartialOrd + ?Sized> Pred2<T> for Decreasing