Trait RngSingleton

Source
pub trait RngSingleton {
    type D: DerefMut<Target = ChaCha12Rng>;

    // Required method
    fn instance() -> Self::D;
}
Expand description

RNG singleton

Required Associated Types§

Source

type D: DerefMut<Target = ChaCha12Rng>

&mut ChaCha12Rng

Required Methods§

Source

fn instance() -> Self::D

Singleton instance

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§