pub trait SampleRange: Sealed {
type Output;
}Expand description
A range Rng::random_range can sample.
Implemented for Range and RangeInclusive of f32, f64, and the
integer types u8..u64, usize, i8..i64, isize. Sealed on
purpose: which primitive a range draws from, and how many draws it takes,
is part of the replay contract, so it is not something a game may redefine.
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".