We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d409475 commit 2f7cea4Copy full SHA for 2f7cea4
library/core/src/cmp.rs
@@ -1482,6 +1482,25 @@ mod impls {
1482
// SAFETY: The discriminants of Ord were chosen to permit this
1483
unsafe { crate::mem::transmute(res) }
1484
}
1485
+
1486
+ #[inline]
1487
+ fn max(self, other: Self) -> Self {
1488
+ if self > other {
1489
+ self
1490
+ } else {
1491
+ other
1492
+ }
1493
1494
1495
1496
+ fn min(self, other: Self) -> Self {
1497
1498
1499
1500
1501
1502
1503
1504
1505
)*)
1506
0 commit comments