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
false
if arguments are equal,true
otherwise -
Returns
true
iflhs
is strictly less thanrhs
,false
otherwise -
Returns
true
iflhs
is less or equal torhs
,false
otherwise -
Returns
true
iflhs
strictly greater thanrhs
,false
otherwise -
Returns
true
iflhs
greater than or equalrhs
,false
otherwise