Module cmp

Source
Expand description

Comparison operator traits

C++’s comparison operators have different semantics from Rust’s PartialOrd and Ord traits. If all the operators (Lt, Le, Gt, Ge) are implemented for a type, the pointer types (CppBox, Ptr, Ref) automatically implement PartialOrd.

Traits§

Ge
Represents C++’s operator>=.
Gt
Represents C++’s operator>.
Le
Represents C++’s operator<=.
Lt
Represents C++’s operator<.