pub enum FloatDist {
Constant(f32),
Uniform {
min: f32,
max: f32,
},
}Expand description
Scalar distribution: constant or uniform [min, max).
min > max is tolerated — bounds are reordered before sampling.
Variants§
Constant(f32)
Always returns the same value.
Uniform
Uniform [min, max). Equal bounds yield the constant.
Implementations§
Trait Implementations§
impl Copy for FloatDist
impl StructuralPartialEq for FloatDist
Auto Trait Implementations§
impl Freeze for FloatDist
impl RefUnwindSafe for FloatDist
impl Send for FloatDist
impl Sync for FloatDist
impl Unpin for FloatDist
impl UnsafeUnpin for FloatDist
impl UnwindSafe for FloatDist
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