pub enum Domain {
Any,
Positive,
NonZero,
Unit,
Probability,
}Expand description
The range of values to draw.
Variants§
Any
Small values of either sign: [-3, 3] for floats, [-10, 10] for
integers ([0, 20] for unsigned).
Positive
Positive values: [0.1, 3] for floats, [1, 10] for integers.
NonZero
Nonzero values, for divisors.
Unit
Values in (-1, 1), for erf_inv.
Probability
Values in (0, 1): [0.01, 0.99] for floats, 0 or 1 for integers.
Trait Implementations§
impl Copy for Domain
impl StructuralPartialEq for Domain
Auto Trait Implementations§
impl Freeze for Domain
impl RefUnwindSafe for Domain
impl Send for Domain
impl Sync for Domain
impl Unpin for Domain
impl UnsafeUnpin for Domain
impl UnwindSafe for Domain
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more