Struct libspecr::IntDistribution
source · pub struct IntDistribution {
pub start: Int,
pub end: Int,
pub divisor: Int,
}Expand description
Uniformly samples a random non-negative Int …
Fields§
§start: Int… satisfying _ >= start for a non-negative start
end: Int… and _ < end
divisor: Int… and _ % divisor == 0 for a positive divisor
Trait Implementations§
source§impl Distribution<Int> for IntDistribution
impl Distribution<Int> for IntDistribution
Auto Trait Implementations§
impl Freeze for IntDistribution
impl RefUnwindSafe for IntDistribution
impl !Send for IntDistribution
impl !Sync for IntDistribution
impl Unpin for IntDistribution
impl UnwindSafe for IntDistribution
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