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.
NotNaN
FloatIsNaN
1 parent 4c52f74 commit 9ea27f9Copy full SHA for 9ea27f9
src/lib.rs
@@ -17,6 +17,16 @@ use std::mem;
17
use unreachable::unreachable;
18
use num_traits::Float;
19
20
+/// A wrapper around Floats providing an implementation of Ord and Hash.
21
+///
22
+/// A NaN value cannot be stored in this type.
23
+#[deprecated(since = "0.6.0", note = "renamed to `NotNan`")]
24
+pub type NotNaN<T> = NotNan<T>;
25
+
26
+/// An error indicating an attempt to construct NotNan from a NaN
27
+#[deprecated(since = "0.6.0", note = "renamed to `FloatIsNan`")]
28
+pub type FloatIsNaN = FloatIsNan;
29
30
// masks for the parts of the IEEE 754 float
31
const SIGN_MASK: u64 = 0x8000000000000000u64;
32
const EXP_MASK: u64 = 0x7ff0000000000000u64;
0 commit comments