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.
1 parent d64c3c3 commit e57fd99Copy full SHA for e57fd99
src/lib.rs
@@ -33,7 +33,7 @@ use num_traits::{
33
pub use num_traits::{Float, Pow};
34
35
#[cfg(feature = "rand")]
36
-pub use impl_rand::UniformOrdered;
+pub use impl_rand::{UniformNotNan, UniformOrdered};
37
38
// masks for the parts of the IEEE 754 float
39
const SIGN_MASK: u64 = 0x8000000000000000u64;
@@ -2246,6 +2246,7 @@ mod impl_rand {
2246
impl_distribution! { Open01, f32, f64 }
2247
impl_distribution! { OpenClosed01, f32, f64 }
2248
2249
+ /// A sampler for a uniform distribution
2250
#[derive(Clone, Copy, Debug, PartialEq)]
2251
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
2252
pub struct UniformNotNan<T>(UniformFloat<T>);
0 commit comments