dec2flt: Rename Integer to Int

This is more consistent with what the trait is called elsewhere in tree
(specifically compiler-builtins and test-float-parse).
This commit is contained in:
Trevor Gross
2026-01-31 02:10:07 -06:00
parent a0e206b566
commit 02ac190909
+3 -3
View File
@@ -12,7 +12,7 @@ pub trait CastInto<T: Copy>: Copy {
}
/// Collection of traits that allow us to be generic over integer size.
pub trait Integer:
pub trait Int:
Sized
+ Clone
+ Copy
@@ -37,7 +37,7 @@ fn cast(self) -> i16 {
}
}
impl Integer for $ty {
impl Int for $ty {
const ZERO: Self = 0;
const ONE: Self = 1;
}
@@ -68,7 +68,7 @@ pub trait RawFloat:
+ Debug
{
/// The unsigned integer with the same size as the float
type Int: Integer + Into<u64>;
type Int: Int + Into<u64>;
/* general constants */