[][src]Module cpp_core::cmp

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, MutPtr, Ref, MutRef) automatically implement PartialOrd.

Traits

Ge

Represents C++'s operator>=.

Gt

Represents C++'s operator>.

Le

Represents C++'s operator<=.

Lt

Represents C++'s operator<.