pub trait Random {
// Required method
fn random() -> Self;
}Expand description
Trait that manages the object creation for the implemented type with random values.
Required Methods§
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.