Move Bits constraints to RawFloat::RawBits

This commit is contained in:
Clar Charr
2017-12-23 17:51:06 -05:00
parent a2cdeb58f6
commit 556fb02e43
2 changed files with 20 additions and 5 deletions

View File

@@ -2874,7 +2874,7 @@ pub enum FpCategory {
pub trait Float: Sized {
/// Type used by `to_bits` and `from_bits`.
#[stable(feature = "core_float_bits", since = "1.24.0")]
type Bits: ops::Add<Output = Self::Bits> + From<u8> + TryFrom<u64>;
type Bits;
/// Returns `true` if this value is NaN and false otherwise.
#[stable(feature = "core", since = "1.6.0")]