Skip to content

Commit e57fd99

Browse files
committed
Expose UniformNotNan
1 parent d64c3c3 commit e57fd99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use num_traits::{
3333
pub use num_traits::{Float, Pow};
3434

3535
#[cfg(feature = "rand")]
36-
pub use impl_rand::UniformOrdered;
36+
pub use impl_rand::{UniformNotNan, UniformOrdered};
3737

3838
// masks for the parts of the IEEE 754 float
3939
const SIGN_MASK: u64 = 0x8000000000000000u64;
@@ -2246,6 +2246,7 @@ mod impl_rand {
22462246
impl_distribution! { Open01, f32, f64 }
22472247
impl_distribution! { OpenClosed01, f32, f64 }
22482248

2249+
/// A sampler for a uniform distribution
22492250
#[derive(Clone, Copy, Debug, PartialEq)]
22502251
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
22512252
pub struct UniformNotNan<T>(UniformFloat<T>);

0 commit comments

Comments
 (0)