Closed
Description
There are implementations of arithmetic operators like Add
, Sub
or Div
for owned primitives mixed with references, however, comparison operators are only available for a single T
.
Is there a technical decision preventing, e.g., impl PartialEq<&usize> for usize
? It would be nice to be able to write 10i32 > some_i32_ref_var
instead of 10i32 > *some_i32_ref_var
.