@@ -33,7 +33,7 @@ pub trait Zero: Sized + Add<Self, Output = Self> {
33
33
///
34
34
/// Types which impl both this trait and [`PartialEq`] will receive a blanket
35
35
/// impl of the [`Zero`] trait.
36
- pub trait ZeroConstant : Zero {
36
+ pub trait ConstZero : Zero {
37
37
/// The additive identity element of `Self`, `0`.
38
38
const ZERO : Self ;
39
39
}
@@ -51,7 +51,7 @@ macro_rules! zero_impl {
51
51
}
52
52
}
53
53
54
- impl ZeroConstant for $t {
54
+ impl ConstZero for $t {
55
55
const ZERO : Self = $v;
56
56
}
57
57
} ;
91
91
}
92
92
}
93
93
94
- impl < T : ZeroConstant > ZeroConstant for Wrapping < T >
94
+ impl < T : ConstZero > ConstZero for Wrapping < T >
95
95
where
96
96
Wrapping < T > : Add < Output = Wrapping < T > > ,
97
97
{
@@ -141,7 +141,7 @@ pub trait One: Sized + Mul<Self, Output = Self> {
141
141
///
142
142
/// Types which impl both this trait and [`PartialEq`] will receive a blanket
143
143
/// impl of the [`One`] trait.
144
- pub trait OneConstant : One {
144
+ pub trait ConstOne : One {
145
145
/// The multiplicative identity element of `Self`, `1`.
146
146
const ONE : Self ;
147
147
}
@@ -159,7 +159,7 @@ macro_rules! one_impl {
159
159
}
160
160
}
161
161
162
- impl OneConstant for $t {
162
+ impl ConstOne for $t {
163
163
const ONE : Self = $v;
164
164
}
165
165
} ;
@@ -195,7 +195,7 @@ where
195
195
}
196
196
}
197
197
198
- impl < T : OneConstant > OneConstant for Wrapping < T >
198
+ impl < T : ConstOne > ConstOne for Wrapping < T >
199
199
where
200
200
Wrapping < T > : Mul < Output = Wrapping < T > > ,
201
201
{
0 commit comments