std.cmp [core] std.cmp.Ordering pub enum Ordering { Less, Equal, Greater, } — std.cmp.Ordering.reverse pub fn reverse(self) -> Ordering — The opposite verdict: Less <-> Greater; Equal is its own reverse. std.cmp.Ordering.then pub fn then(self, other: Ordering) -> Ordering — Lexicographic composition: keep self unless it is Equal, in which case defer to other. std.cmp.Ordering.is_lt pub fn is_lt(self) -> bool — True exactly for Less. std.cmp.Ordering.is_le pub fn is_le(self) -> bool — True for Less or Equal. std.cmp.Ordering.is_eq pub fn is_eq(self) -> bool — True exactly for Equal. std.cmp.Ordering.is_ne pub fn is_ne(self) -> bool — True for anything but Equal. std.cmp.Ordering.is_ge pub fn is_ge(self) -> bool — True for Greater or Equal. std.cmp.Ordering.is_gt pub fn is_gt(self) -> bool — True exactly for Greater. std.cmp.Eq pub trait Eq { fn eq(self, other: Self) -> bool } — Equivalence. std.cmp.Ord pub trait Ord { fn cmp(self, other: Self) -> Ordering } — Total order. std.cmp.min pub fn min[T: Ord](a: T, b: T) -> T — Least of a and b under Ord; returns a on a tie (the stable choice). std.cmp.max pub fn max[T: Ord](a: T, b: T) -> T — Greatest of a and b under Ord; returns a on a tie (the stable choice). std.cmp.clamp pub fn clamp[T: Ord](v: T, lo: T, hi: T) -> T — v limited to [lo, hi]: lo when v < lo, hi when v > hi, else v. std.cmp.total_cmp pub fn total_cmp(a: f64, b: f64) -> Ordering — IEEE totalOrder over floats, monomorphic: -inf < negative reals < -0.0 < +0.0 < positive reals < +inf < NaN.