pub struct Rng { /* private fields */ }Expand description
A seeded stream of numbers, reproducible everywhere.
Implementations§
Source§impl Rng
impl Rng
Sourcepub const fn state(&self) -> u64
pub const fn state(&self) -> u64
The seed a stream would need to be at this point again.
Every trial takes one of these and prints it on failure, so a hundred thousand trial run that fails on trial 74,113 hands back a number that reproduces trial 74,113 on its own in a millisecond.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rng
impl RefUnwindSafe for Rng
impl Send for Rng
impl Sync for Rng
impl Unpin for Rng
impl UnsafeUnpin for Rng
impl UnwindSafe for Rng
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