pub trait RngCompatExt: RngCore {
    type Wrapper: RngCore + OldRngCore;

    fn rng_compat(self) -> Self::Wrapper;
}
Expand description

Extension trait for the current versions of RngCore; adds a compatibility-wrapper function.

Required Associated Types

Wrapper type returned by this trait.

Required Methods

Return a version of this Rng that can be used with older versions of the rand_core and rand libraries, as well as the current version.

Implementors