Trait Randomizable
pub trait Randomizable {
// Required method
fn random() -> Self;
}
Expand description
Trait for types that can be randomly generated.
Required Methods§
fn random() -> Self
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.