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.
Integer
Int
1 parent 8ecf216 commit a1e71fdCopy full SHA for a1e71fd
1 file changed
library/core/src/num/imp/dec2flt/float.rs
@@ -12,7 +12,7 @@ pub trait CastInto<T: Copy>: Copy {
12
}
13
14
/// Collection of traits that allow us to be generic over integer size.
15
-pub trait Integer:
+pub trait Int:
16
Sized
17
+ Clone
18
+ Copy
@@ -37,7 +37,7 @@ macro_rules! int {
37
38
39
40
- impl Integer for $ty {
+ impl Int for $ty {
41
const ZERO: Self = 0;
42
const ONE: Self = 1;
43
@@ -68,7 +68,7 @@ pub trait RawFloat:
68
+ Debug
69
{
70
/// The unsigned integer with the same size as the float
71
- type Int: Integer + Into<u64>;
+ type Int: Int + Into<u64>;
72
73
/* general constants */
74
0 commit comments