Trait Randomizable

Source
pub trait Randomizable {
    // Required method
    fn random() -> Self;
}
Expand description

Trait for types that can be randomly generated.

Required Methods§

Source

fn random() -> Self

Generates random value of this type using a cryptographically strong RNG.

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§