Std.Order
49 public declarations
- ascending
fn(T, T) -> Std.Order.Ordering -> T -> T -> BoolA comparison turned into the predicate the sorting functions take.
- before
Std.Order.Ordering -> BoolAn ordering as the "sorts before" predicate the sorting functions take.
- before
&BigInt -> &BigInt -> BoolReturn true when this value belongs strictly before `other` in the type's order.
- before
&Bool -> &Bool -> BoolReturn true when this value belongs strictly before `other` in the type's order.
- before
&Char -> &Char -> BoolReturn true when this value belongs strictly before `other` in the type's order.
- before
&Decimal -> &Decimal -> BoolReturn true when this value belongs strictly before `other` in the type's order.
- before
&Float32 -> &Float32 -> BoolReturn true when this value belongs strictly before `other` in the type's order.
- before
&Float64 -> &Float64 -> BoolReturn true when this value belongs strictly before `other` in the type's order.
- before
&Int -> &Int -> BoolReturn true when this value belongs strictly before `other` in the type's order.
- before
&Int128 -> &Int128 -> BoolReturn true when this value belongs strictly before `other` in the type's order.
- before
&Int16 -> &Int16 -> BoolReturn true when this value belongs strictly before `other` in the type's order.
- before
&Int32 -> &Int32 -> BoolReturn true when this value belongs strictly before `other` in the type's order.
- before
&Int64 -> &Int64 -> BoolReturn true when this value belongs strictly before `other` in the type's order.
- before
&Int8 -> &Int8 -> BoolReturn true when this value belongs strictly before `other` in the type's order.
- before
&Str -> &Str -> BoolReturn true when this value belongs strictly before `other` in the type's order.
- before
&Self -> &Self -> BoolReturn true when this value belongs strictly before `other` in the type's order.
- before
&UInt -> &UInt -> BoolReturn true when this value belongs strictly before `other` in the type's order.
- before
&UInt128 -> &UInt128 -> BoolReturn true when this value belongs strictly before `other` in the type's order.
- before
&UInt16 -> &UInt16 -> BoolReturn true when this value belongs strictly before `other` in the type's order.
- before
&UInt32 -> &UInt32 -> BoolReturn true when this value belongs strictly before `other` in the type's order.
- before
&UInt64 -> &UInt64 -> BoolReturn true when this value belongs strictly before `other` in the type's order.
- before
&UInt8 -> &UInt8 -> BoolReturn true when this value belongs strictly before `other` in the type's order.
- clamped
&T -> &T -> &T -> T where T: OrdA value confined to a range, under its own ordering.
- compareBool
Bool -> Bool -> Std.Order.OrderingTwo truth values compared, with false before true.
- compareChar
Char -> Char -> Std.Order.OrderingTwo characters compared by scalar value.
- compareInt
Int -> Int -> Std.Order.OrderingTwo whole numbers compared.
- compareText
Str -> Str -> Std.Order.OrderingTwo texts compared by their characters, in scalar order.
- descending
fn(T, T) -> Std.Order.Ordering -> T -> T -> BoolA comparison turned into a descending predicate.
- different
&T -> &T -> Bool where T: EqWhether two values differ under their own rule.
- Eq
A type whose values can be compared for equality.
- equivalent
&T -> &T -> Bool where T: OrdWhether two values are equivalent under the ordering.
- follows
&T -> &T -> Bool where T: OrdWhether the first value sorts after the second.
- Hash
A value's number, for a collection that reaches its entries by one.
- hashed
&T -> Int where T: HashThe number a value hashes to, for a caller writing their own container.
- isEqual
&Std.Order.Ordering -> BoolWhether an ordering says the two values are equivalent.
- isGreater
&Std.Order.Ordering -> BoolWhether an ordering says the second value comes first.
- isLess
&Std.Order.Ordering -> BoolWhether an ordering says the first value comes first.
- larger
&T -> &T -> T where T: OrdThe larger of two values under their own ordering.
- max
T -> T -> fn(T, T) -> Std.Order.Ordering -> TThe larger of two values under a comparison.
- min
T -> T -> fn(T, T) -> Std.Order.Ordering -> TThe smaller of two values under a comparison.
- Ord
A type whose values are ordered.
- ordering
&T -> &T -> Std.Order.Ordering where T: OrdHow one value stands to another, under its own ordering.
- Ordering
How one value stands to another.
- precedes
&T -> &T -> Bool where T: OrdWhether the first value sorts before the second.
- reverse
Std.Order.Ordering -> Std.Order.OrderingThe opposite ordering, which is how a descending sort is written from an
- same
&T -> &T -> Bool where T: EqWhether two values are equal under their own rule.
- smaller
&T -> &T -> T where T: OrdThe smaller of two values under their own ordering.
- thenBy
Std.Order.Ordering -> Std.Order.Ordering -> Std.Order.OrderingThe first ordering unless it is `Equal`, in which case the second.
- toInt
Std.Order.Ordering -> IntAn ordering as a whole number: -1, 0, or 1.
