[−][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
, Ref
) automatically implement PartialOrd
.
Traits
Ge | Represents C++'s |
Gt | Represents C++'s |
Le | Represents C++'s |
Lt | Represents C++'s |