feat: add MaximizingOperator
1 files changed, 15 insertions(+), 0 deletions(-) M env/src/comparison/mod.rs
M env/src/comparison/mod.rs => env/src/comparison/mod.rs +15 -0
@@ 16,3 16,18 @@ impl<T> BetterThanOperator<T> for MinimizingOperator a < b } } pub struct MaximizingOperator; impl MaximizingOperator { pub fn new() -> Self { Self } } impl<T> BetterThanOperator<T> for MaximizingOperator where T: PartialOrd { fn better_than(self: &Self, a: &T, b: &T) -> bool { a > b } }