Trait rug::rand::MutRandState

source ·
pub trait MutRandState: SealedMutRandState { }
Expand description

Used to pass the state of random number generators by mutable reference.

This trait is implemented by

  1. RandState, which is thread safe and implements Send and Sync.
  2. ThreadRandState, which can only be used in a single thread.

This trait is sealed and cannot be implemented for more types.

Implementors§