mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-03 17:35:28 +03:00
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:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user