We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
min_value
max_value
1 parent ee4bdb9 commit 48ece04Copy full SHA for 48ece04
src/internal_type_traits.rs
@@ -55,6 +55,8 @@ pub(crate) trait Integral:
55
{
56
fn zero() -> Self;
57
fn one() -> Self;
58
+ fn min_value() -> Self;
59
+ fn max_value() -> Self;
60
}
61
62
macro_rules! impl_integral {
@@ -70,6 +72,16 @@ macro_rules! impl_integral {
70
72
fn one() -> Self {
71
73
1
74
75
+
76
+ #[inline]
77
+ fn min_value() -> Self {
78
+ Self::min_value()
79
+ }
80
81
82
+ fn max_value() -> Self {
83
+ Self::max_value()
84
85
86
)*
87
};
0 commit comments