pub trait RandomRange {
// Required methods
fn gen_range(low: Self, high: Self) -> Self;
fn gen_range_with_state(
state: &RandGenerator,
low: Self,
high: Self,
) -> Self;
}
Required Methods§
fn gen_range(low: Self, high: Self) -> Self
fn gen_range_with_state(state: &RandGenerator, low: Self, high: Self) -> Self
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.