Protocol std::builtins::internal::BuiltinComparable
protocol BuiltinComparable<Self> { ... }
Self: Numeric
This mixin implements Equatable and Comparable for types that have natively implemented equality and comparison operators.
Provided methods
-
Returns
falseif arguments are equal,trueotherwise -
Returns
trueiflhsis strictly less thanrhs,falseotherwise -
Returns
trueiflhsis less or equal torhs,falseotherwise -
Returns
trueiflhsstrictly greater thanrhs,falseotherwise -
Returns
trueiflhsgreater than or equalrhs,falseotherwise