pub(crate) struct IncreasingUniform<R: RngCore> {
    pub rng: R,
    n: u32,
    chunk: u32,
    chunk_remaining: u8,
}Expand description
Similar to a Uniform distribution, but after returning a number in the range [0,n], n is increased by 1.
Fields§
§rng: R§n: u32§chunk: u32§chunk_remaining: u8Implementations§
Source§impl<R: RngCore> IncreasingUniform<R>
 
impl<R: RngCore> IncreasingUniform<R>
Auto Trait Implementations§
impl<R> Freeze for IncreasingUniform<R>where
    R: Freeze,
impl<R> RefUnwindSafe for IncreasingUniform<R>where
    R: RefUnwindSafe,
impl<R> Send for IncreasingUniform<R>where
    R: Send,
impl<R> Sync for IncreasingUniform<R>where
    R: Sync,
impl<R> Unpin for IncreasingUniform<R>where
    R: Unpin,
impl<R> UnwindSafe for IncreasingUniform<R>where
    R: UnwindSafe,
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