Expand description
A compatibility layer for rand_core providing adaptation between traits for
each version.
Select the rand_core/rand versions you want to have compatibility between
using the crate features:
rand_core_0_5:rand_core 0.5/rand 0.7.rand_core_0_6:rand_core 0.6/rand 0.8.rand_core_0_9:rand_core 0.9/rand 0.9.
You then most likely want to wrap your RNG, e.g. of version rand_core 0.6/rand 0.8 in a Rng06 struct. It’ll implement the RngCore traits of
all the other versions you selected via features.
Re-exports§
pub extern crate rand_core_0_5;pub extern crate rand_core_0_6;pub extern crate rand_core_0_9;
Modules§
- error
rand_core_0_5orrand_core_0_6 - Custom error codes used when compiled without
stdsupport.
Structs§
- Error05
rand_core_0_5 - Wrapper struct for a
rand_core 0.5/rand 0.7error type. - Error06
rand_core_0_6 - Wrapper struct for a
rand_core 0.6/rand 0.8error type. - Error09
rand_core_0_9 - Wrapper struct for a
rand_core 0.9/rand 0.9error type. - Rng05
rand_core_0_5 - Wrapper struct for a
rand_core 0.5/rand 0.7RNG. - Rng06
rand_core_0_6 - Wrapper struct for a
rand_core 0.6/rand 0.8RNG. - Rng09
rand_core_0_9 - Wrapper struct for a
rand_core 0.9/rand 0.9RNG. - TryRng05
rand_core_0_5 - Wrapper struct for a
rand_core 0.5/rand 0.7fallible RNG. - TryRng06
rand_core_0_6 - Wrapper struct for a
rand_core 0.6/rand 0.8fallible RNG. - TryRng09
rand_core_0_9 - Wrapper struct for a
rand_core 0.9/rand 0.9fallible RNG.