Function try_with_rng

Source
fn try_with_rng<R>(f: impl FnOnce(&mut Rng) -> R) -> Result<R, AccessError>
Expand description

Try to run an operation with the current thread-local generator.